mirror of
https://github.com/tcgdex/compiler.git
synced 2025-07-28 23:19:50 +00:00
Updated Series/Sets fetchers to filter and sort
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
@ -27,6 +27,6 @@ export default class implements Endpoint<SerieList, SerieSingle, {}, Array<Serie
|
||||
}
|
||||
|
||||
public async common() {
|
||||
return getSeries()
|
||||
return getSeries(this.lang)
|
||||
}
|
||||
}
|
||||
|
@ -32,8 +32,7 @@ export default class implements Endpoint<SetList, SetSingle, CardSingle, Array<S
|
||||
}
|
||||
|
||||
public async common() {
|
||||
return (await getSets())
|
||||
.filter((set) => isSetAvailable(set, this.lang))
|
||||
return (await getSets(undefined, this.lang))
|
||||
}
|
||||
|
||||
public async sub(common: Array<Set>, item: string) {
|
||||
|
Reference in New Issue
Block a user