1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-04-22 10:52:10 +00:00

Fix: duplication bug (#136)

Signed-off-by: Avior <github@avior.me>
This commit is contained in:
Florian Bouillon 2021-11-04 12:21:54 +01:00 committed by GitHub
parent 7de5764409
commit 80ec53a57d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 2 deletions

View File

@ -20,7 +20,6 @@ export default class implements Endpoint<SerieList, SerieSingle, Record<string,
for await (const val of common) { for await (const val of common) {
const gen = await serieToSerieSingle(val, this.lang) const gen = await serieToSerieSingle(val, this.lang)
const name = val.name[this.lang] as string const name = val.name[this.lang] as string
items[name] = gen
items[val.id] = gen items[val.id] = gen
} }
return items return items

View File

@ -27,7 +27,6 @@ export default class implements Endpoint<SetList, SetSingle, CardSingle, Array<S
const res: Record<string, SetSingle> = {} const res: Record<string, SetSingle> = {}
for (const set of sets) { for (const set of sets) {
res[set.name] = set
res[set.id] = set res[set.id] = set
} }