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

fix: random card not respecting format (#589)

This commit is contained in:
Florian Bouillon 2024-11-27 23:55:07 +01:00 committed by GitHub
parent 8610bd60fe
commit d291c692d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,7 @@ server
}
const item = Math.min(data.length - 1, Math.max(0, Math.round(Math.random() * data.length)))
req.DO_NOT_CACHE = true
res.json(data[item])
res.json(data[item].full())
})