Feat: library name on library pages

This commit is contained in:
Julien Froidefond
2025-02-21 16:22:28 +01:00
parent 7b950f8729
commit ea475d02e8
2 changed files with 17 additions and 3 deletions

View File

@@ -19,6 +19,15 @@ export class LibraryService extends BaseApiService {
}
}
static async getLibrary(libraryId: string): Promise<Library> {
const libraries = await this.getLibraries();
const library = libraries.find((library) => library.id === libraryId);
if (!library) {
throw new Error(`Bibliothèque ${libraryId} non trouvée`);
}
return library;
}
static async getLibrarySeries(
libraryId: string,
page: number = 0,