diff --git a/server/src/main/kotlin/suwayomi/tachidesk/graphql/mutations/DownloadMutation.kt b/server/src/main/kotlin/suwayomi/tachidesk/graphql/mutations/DownloadMutation.kt index 1d326f63..34edd441 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/graphql/mutations/DownloadMutation.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/graphql/mutations/DownloadMutation.kt @@ -166,8 +166,8 @@ class DownloadMutation { DownloadStatus( DownloadManager.updates .first { - it.updates.none { - it.downloadChapter.chapter.id in chapters && it.type != DEQUEUED + it.updates.any { + it.downloadChapter.chapter.id in chapters && it.type == DEQUEUED } }.let { DownloadManager.getStatus() }, ) @@ -201,8 +201,8 @@ class DownloadMutation { DownloadStatus( DownloadManager.updates .first { - it.updates.none { - it.downloadChapter.chapter.id == chapter && it.type != DEQUEUED + it.updates.any { + it.downloadChapter.chapter.id == chapter && it.type == DEQUEUED } }.let { DownloadManager.getStatus() }, )