1
0
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:
Florian Bouillon 2021-11-04 12:30:08 +01:00 committed by GitHub
parent 80ec53a57d
commit 7173179d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)