mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 11:24:35 -05:00
Move trigger for track progress update to client (#918)
Triggering the progress update on server side does not work because the client needs to get the mutation result, otherwise, the clients cache will get outdated
This commit is contained in:
@@ -10,7 +10,6 @@ import suwayomi.tachidesk.graphql.types.ChapterMetaType
|
||||
import suwayomi.tachidesk.graphql.types.ChapterType
|
||||
import suwayomi.tachidesk.manga.impl.Chapter
|
||||
import suwayomi.tachidesk.manga.impl.chapter.getChapterDownloadReadyById
|
||||
import suwayomi.tachidesk.manga.impl.track.Track
|
||||
import suwayomi.tachidesk.manga.model.table.ChapterMetaTable
|
||||
import suwayomi.tachidesk.manga.model.table.ChapterTable
|
||||
import suwayomi.tachidesk.server.JavalinSetup.future
|
||||
@@ -70,13 +69,6 @@ class ChapterMutation {
|
||||
update[lastReadAt] = now
|
||||
}
|
||||
}
|
||||
if (patch.isRead == true) {
|
||||
val mangaIds =
|
||||
ChapterTable.slice(ChapterTable.manga).select { ChapterTable.id inList ids }
|
||||
.map { it[ChapterTable.manga].value }
|
||||
.toSet()
|
||||
Track.asyncTrackChapter(mangaIds)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user