mirror of
https://github.com/tcgdex/compiler.git
synced 2025-08-02 00:51:57 +00:00
Update in progress
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
@@ -31,7 +31,7 @@ export default async () => {
|
||||
|
||||
const toSave: HpSingle = {
|
||||
hp: hp as unknown as number,
|
||||
cards: cards.map(el => cardToCardSimple(el, lang))
|
||||
cards: await Promise.all(cards.map(el => cardToCardSimple(el, lang)))
|
||||
}
|
||||
|
||||
await fs.mkdir(`${endpoint}/${toSave.hp}/`, {recursive: true})
|
||||
|
Reference in New Issue
Block a user