Add default pageCount value to fix PSQLException (#2039)

* Add default pageCount value to fix PSQLException

* Update CHANGELOG.md
This commit is contained in:
AeonLucid
2026-05-17 01:07:56 +02:00
committed by GitHub
parent 16a14e6ac2
commit a4b647972e
2 changed files with 2 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- (WebUI) Wait until WebUI is ready to open in browser
- (Downloads) Truncate filenames by byte length to prevent "File name too long" IO errors
- (Extension) Do not indicate an update is available when the extension is not installed
- (Chapter) Fix database error when fetching chapter updates
## [v2.2.2100] + [WebUI: v20260508.01] - 2026-05-08

View File

@@ -287,6 +287,7 @@ object Chapter {
this[ChapterTable.isRead] = false
this[ChapterTable.isBookmarked] = false
this[ChapterTable.isDownloaded] = false
this[ChapterTable.pageCount] = -1
// is recognized chapter number
if (chapter.chapterNumber >= 0f && chapter.chapterNumber in deletedChapterNumbers) {