1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-06-12 15:59:18 +00:00
Signed-off-by: Avior <github@avior.me>
This commit is contained in:
2021-11-04 13:36:15 +01:00
committed by GitHub
parent 7173179d6f
commit 02de2d5006

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':