Dequeue downloads of removed chapters (#1426)

Otherwise, graphql errors will be caused because the chapters won't be found and are unexpectedly null.

fixes #1358
This commit is contained in:
schroda
2025-06-12 17:48:27 +02:00
committed by GitHub
parent 7c5edd1b73
commit e224e91100
@@ -261,6 +261,7 @@ object Chapter {
// we got some clean up due
if (chaptersIdsToDelete.isNotEmpty()) {
DownloadManager.dequeue(chaptersIdsToDelete)
transaction {
PageTable.deleteWhere { chapter inList chaptersIdsToDelete }
ChapterTable.deleteWhere { id inList chaptersIdsToDelete }