mirror of
https://github.com/tcgdex/compiler.git
synced 2025-04-22 10:42:09 +00:00
Fixed inexisting series having sets registered
Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
08483e2dd8
commit
638a221347
@ -46,8 +46,8 @@ export async function getSet(name: string, serie = '*', lang: SupportedLanguages
|
||||
return setCache[name]
|
||||
}
|
||||
|
||||
export function isSetAvailable(set: Set, lang: SupportedLanguages) {
|
||||
return lang in set.name
|
||||
export async function isSetAvailable(set: Set, lang: SupportedLanguages) {
|
||||
return lang in set.name && lang in set.serie.name
|
||||
}
|
||||
|
||||
export async function getSetPictures(set: Set, lang: SupportedLanguages): Promise<[string | undefined, string | undefined]> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user