1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-07-29 11:09:51 +00:00

fix: Invalid card when searching using the set and localid (#472)

This commit is contained in:
2024-01-08 00:40:31 +01:00
committed by GitHub
parent 8684fb14e4
commit 33007d83bc
7 changed files with 53 additions and 17 deletions

View File

@ -69,7 +69,7 @@ export default class Card implements LocalCard {
}
public static findOne(lang: SupportedLanguages, query: Query<SDKCard>) {
const res = handleValidation(this.getAll(lang), query)
const res = handleSort(handleValidation(this.getAll(lang), query), query)
if (res.length === 0) {
return undefined
}