Skip to content

Conversation

@Batorian
Copy link
Contributor

@Batorian Batorian commented Mar 1, 2025

No description provided.


const markPreviousChaptersUnreadQuery =
'UPDATE Chapter SET `unread` = 1 WHERE id <= ? AND novelId = ?';
'UPDATE Chapter SET `unread` = 1 WHERE id >= ? AND novelId = ?';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why >=, isnt previous chapter id is smaller than the selected chapter id

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because as it is right now it makes no sense. If you read 30 chapters of a novel and you want to select chapter 15 and previous ones as unread, you don't want to mark chapters 1-15 unread but 15-30. It's kind of reversed logic from marking previous chapters read.

Screenshot_20250322-113516.png

Screenshot_20250322-113538.png

Screenshot_20250322-113554.png

@Batorian Batorian requested a review from nyagami March 23, 2025 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants