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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user