fix: bad env

This commit is contained in:
Julien Froidefond
2025-02-18 08:37:53 +01:00
parent 6fb5d85f99
commit 97a1295a41
5 changed files with 12 additions and 27 deletions

View File

@@ -105,4 +105,14 @@ export class SeriesService extends BaseApiService {
static getCoverUrl(seriesId: string): string {
return `/api/komga/images/series/${seriesId}/thumbnail`;
}
static async getMultipleSeries(seriesIds: string[]): Promise<KomgaSeries[]> {
try {
const seriesPromises = seriesIds.map((id) => this.getSeries(id));
const series = await Promise.all(seriesPromises);
return series.filter(Boolean);
} catch (error) {
return this.handleError(error, "Impossible de récupérer les séries");
}
}
}