mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-06-14 00:29:19 +00:00
fix: random card not respecting format (#589)
This commit is contained in:
@ -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())
|
||||
})
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user