mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 10:54:38 -05:00
Send dequeue download mutation response (#1218)
Response was never sent due to incorrect updates filter condition
This commit is contained in:
@@ -166,8 +166,8 @@ class DownloadMutation {
|
|||||||
DownloadStatus(
|
DownloadStatus(
|
||||||
DownloadManager.updates
|
DownloadManager.updates
|
||||||
.first {
|
.first {
|
||||||
it.updates.none {
|
it.updates.any {
|
||||||
it.downloadChapter.chapter.id in chapters && it.type != DEQUEUED
|
it.downloadChapter.chapter.id in chapters && it.type == DEQUEUED
|
||||||
}
|
}
|
||||||
}.let { DownloadManager.getStatus() },
|
}.let { DownloadManager.getStatus() },
|
||||||
)
|
)
|
||||||
@@ -201,8 +201,8 @@ class DownloadMutation {
|
|||||||
DownloadStatus(
|
DownloadStatus(
|
||||||
DownloadManager.updates
|
DownloadManager.updates
|
||||||
.first {
|
.first {
|
||||||
it.updates.none {
|
it.updates.any {
|
||||||
it.downloadChapter.chapter.id == chapter && it.type != DEQUEUED
|
it.downloadChapter.chapter.id == chapter && it.type == DEQUEUED
|
||||||
}
|
}
|
||||||
}.let { DownloadManager.getStatus() },
|
}.let { DownloadManager.getStatus() },
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user