From e224e91100d9fa9848362f73f3e0d248cfe36332 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Thu, 12 Jun 2025 17:48:27 +0200 Subject: [PATCH] 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 --- server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt index e8d6642e..2ccf6fa2 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt @@ -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 }