Added fallback if there is no default cover

This commit is contained in:
ltctceplrm 2023-09-23 00:29:24 +02:00
parent cf36d19e11
commit e89bf8e455

View file

@ -42,7 +42,7 @@ async searchByTitle(title: string): Promise<MediaTypeModel[]> {
englishTitle: result.title_english ?? result.title,
year: result.first_publish_year,
dataSource: this.apiName,
id: result.cover_edition_key,
id: result.cover_edition_key ?? result.edition_key,
} as BookModel)
);
}