Skip to content

Commit 01b56c9

Browse files
committed
Changed publishers mapping for comic books
the publisher field on comic vine isn't an array
1 parent 4eee370 commit 01b56c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/apis/ComicVineAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class ComicVineAPI extends APIModel {
8282
image: result.image?.original_url ?? '',
8383

8484
released: true,
85-
publishers: result.publisher.map((x: any) => x.name) ?? [],
85+
publishers: result.publisher.name ?? [],
8686
publishedFrom: result.start_year ?? 'unknown',
8787
publishedTo: 'unknown',
8888
status: result.status,

src/models/ComicBookModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ export class ComicBookModel extends MediaTypeModel {
6262
}
6363

6464
getSummary(): string {
65-
return this.englishTitle + ' (' + this.year + ') - ' + this.publisher;
65+
return this.englishTitle + ' (' + this.year + ') - ' + this.publishers;
6666
}
6767
}

0 commit comments

Comments
 (0)