Updated Series/Sets fetchers to filter and sort

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2021-05-03 00:56:45 +02:00
parent 91f968a01e
commit 6e517efd0f
4 changed files with 45 additions and 16 deletions

View File

@ -27,6 +27,6 @@ export default class implements Endpoint<SerieList, SerieSingle, {}, Array<Serie
}
public async common() {
return getSeries()
return getSeries(this.lang)
}
}

View File

@ -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) {