Skip to content

Commit

Permalink
Update lastPageRead on chapter update (#939)
Browse files Browse the repository at this point in the history
Broken with 7293855...
  • Loading branch information
schroda committed Apr 28, 2024
1 parent 7293855 commit cf1ede9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ChapterMutation {
this[ChapterTable.isBookmarked] = it
}
patch.lastPageRead?.also {
this[ChapterTable.lastPageRead] = it.coerceAtMost(chapterIdToPageCount[it] ?: 0).coerceAtLeast(0)
this[ChapterTable.lastPageRead] = it.coerceAtMost(chapterIdToPageCount[chapterId] ?: 0).coerceAtLeast(0)
this[ChapterTable.lastReadAt] = now
}
}
Expand Down

0 comments on commit cf1ede9

Please sign in to comment.