mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-06-30 17:34:39 -05:00
Fix update chapters (#557)
This commit is contained in:
@@ -119,9 +119,12 @@ class ChapterMutation {
|
|||||||
return future {
|
return future {
|
||||||
Chapter.fetchChapterList(mangaId)
|
Chapter.fetchChapterList(mangaId)
|
||||||
}.thenApply {
|
}.thenApply {
|
||||||
val chapters = ChapterTable.select { ChapterTable.manga eq mangaId }
|
val chapters = transaction {
|
||||||
|
ChapterTable.select { ChapterTable.manga eq mangaId }
|
||||||
.orderBy(ChapterTable.sourceOrder)
|
.orderBy(ChapterTable.sourceOrder)
|
||||||
.map { ChapterType(it) }
|
.map { ChapterType(it) }
|
||||||
|
}
|
||||||
|
|
||||||
FetchChaptersPayload(
|
FetchChaptersPayload(
|
||||||
clientMutationId = clientMutationId,
|
clientMutationId = clientMutationId,
|
||||||
chapters = chapters
|
chapters = chapters
|
||||||
|
|||||||
Reference in New Issue
Block a user