1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-06-15 17:09:19 +00:00

feat: Add support for Asians Pokémon Cards (#481)

This commit is contained in:
2024-06-07 12:53:08 +02:00
committed by GitHub
parent a35fadd50c
commit a26ef0e5eb
8069 changed files with 379200 additions and 423 deletions

View File

@ -4,7 +4,10 @@ import { cardToCardSingle, getCards } from '../utils/cardUtil'
const fn: FileFunction = async (lang: SupportedLanguages) => {
const common = await getCards(lang)
return await Promise.all(common.map((card) => cardToCardSingle(card[0], card[1], lang)))
return await Promise.all(common.map((card) => cardToCardSingle(card[0], card[1], lang).catch((e) => {
console.log('error compiling card', `${card[1].set.id}-${card[0]}`)
throw e
})))
}
export default fn