mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 11:24:35 -05:00
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:
@@ -261,6 +261,7 @@ object Chapter {
|
|||||||
|
|
||||||
// we got some clean up due
|
// we got some clean up due
|
||||||
if (chaptersIdsToDelete.isNotEmpty()) {
|
if (chaptersIdsToDelete.isNotEmpty()) {
|
||||||
|
DownloadManager.dequeue(chaptersIdsToDelete)
|
||||||
transaction {
|
transaction {
|
||||||
PageTable.deleteWhere { chapter inList chaptersIdsToDelete }
|
PageTable.deleteWhere { chapter inList chaptersIdsToDelete }
|
||||||
ChapterTable.deleteWhere { id inList chaptersIdsToDelete }
|
ChapterTable.deleteWhere { id inList chaptersIdsToDelete }
|
||||||
|
|||||||
Reference in New Issue
Block a user