We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f2eeef commit 89c254dCopy full SHA for 89c254d
packages/api/src/services/library_item.ts
@@ -1039,8 +1039,9 @@ export const updateLibraryItemReadingProgress = async (
1039
}
1040
1041
const updatedItem = result[0][0]
1042
- if (updatedItem.readingProgressBottomPercent === 100) {
1043
- // mark item as read
+ const readingProgress = updatedItem.readingProgressBottomPercent
+ if (readingProgress === 0 || readingProgress === 100) {
1044
+ // only send PAGE_UPDATED event if users mark item as read or unread
1045
await pubsub.entityUpdated<ItemEvent>(EntityType.ITEM, updatedItem, userId)
1046
1047
0 commit comments