Skip to content

Commit

Permalink
Merge pull request md-y#67 from spacehamster/master
Browse files Browse the repository at this point in the history
Added latestUploadedChapter field.
  • Loading branch information
md-y authored Oct 1, 2022
2 parents a5eff5a + c6114c3 commit b33299b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/structure/manga.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,15 @@ class Manga {
* @type {string}
*/
this.state = context.data.attributes.state;

/**
* The latest uploaded chapter for this manga
* @type {Relationship<Chapter>}
*/
this.latestUploadedChapter = context.data.attributes.latestUploadedChapter ? new Relationship({
id: context.data.attributes.latestUploadedChapter,
type: 'chapter'
}) : null;
}

/**
Expand Down

0 comments on commit b33299b

Please sign in to comment.