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:
parent
8610bd60fe
commit
d291c692d9
@ -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())
|
||||
})
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user