mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-04-23 11:22:10 +00:00
Fix: card endpoint (#137)
* Fixed duplication bug Signed-off-by: Avior <github@avior.me> * Fixed Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
80ec53a57d
commit
7173179d6f
@ -65,7 +65,6 @@ server
|
|||||||
// to be quicker we directly return the raw file
|
// to be quicker we directly return the raw file
|
||||||
if (objectSize(req.query) === 0) {
|
if (objectSize(req.query) === 0) {
|
||||||
result = Card.raw(lang)
|
result = Card.raw(lang)
|
||||||
return
|
|
||||||
} else {
|
} else {
|
||||||
result = Card
|
result = Card
|
||||||
.find(lang, req.query)
|
.find(lang, req.query)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user