mirror of
https://github.com/tcgdex/compiler.git
synced 2025-07-28 23:19:50 +00:00
Put back the different cases
Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
@ -18,9 +18,7 @@ export default class implements Endpoint<SerieList, SerieSingle, {}, Array<Serie
|
||||
const val = common[key];
|
||||
const gen = await serieToSerieSingle(val, this.lang)
|
||||
const name = val.name[this.lang]
|
||||
if (name && val.id !== name.toLowerCase()) {
|
||||
items[name] = gen
|
||||
}
|
||||
items[name] = gen
|
||||
items[val.id] = gen
|
||||
}
|
||||
return items
|
||||
|
Reference in New Issue
Block a user