1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-04-23 03:12:10 +00:00
Signed-off-by: Avior <github@avior.me>
This commit is contained in:
Florian Bouillon 2021-11-04 13:36:15 +01:00 committed by GitHub
parent 7173179d6f
commit 02de2d5006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,14 +62,9 @@ server
switch (endpoint) {
case 'cards':
// to be quicker we directly return the raw file
if (objectSize(req.query) === 0) {
result = Card.raw(lang)
} else {
result = Card
result = Card
.find(lang, req.query)
.map((c) => c.resume())
}
break
case 'sets':