Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent greater last page read than page count #938

Conversation

schroda
Copy link
Collaborator

@schroda schroda commented Apr 27, 2024

In case multiple chapters are getting updated, the last page read might be higher than the available pages of a chapter

@Syer10
Copy link
Collaborator

Syer10 commented Apr 28, 2024

What about chapters where we haven't fetched the pages so the pagecount is -1?

In case multiple chapters are getting updated, the last page read might be higher than the available pages of a chapter
@schroda schroda force-pushed the fix/gql_chapters_mutation_prevent_greater_last_page_read_than_page_count branch from c317ce3 to c1ef6c9 Compare April 28, 2024 01:14
@schroda
Copy link
Collaborator Author

schroda commented Apr 28, 2024

What about chapters where we haven't fetched the pages so the pagecount is -1?

it would have broken coerceIn...
lastPageRead will now be 0 in that case

@Syer10 Syer10 merged commit 7293855 into Suwayomi:master Apr 28, 2024
2 checks passed
@schroda schroda deleted the fix/gql_chapters_mutation_prevent_greater_last_page_read_than_page_count branch May 7, 2024 00:51
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