mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 14:52:05 +01: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 {
|
||||||
.orderBy(ChapterTable.sourceOrder)
|
ChapterTable.select { ChapterTable.manga eq mangaId }
|
||||||
.map { ChapterType(it) }
|
.orderBy(ChapterTable.sourceOrder)
|
||||||
|
.map { ChapterType(it) }
|
||||||
|
}
|
||||||
|
|
||||||
FetchChaptersPayload(
|
FetchChaptersPayload(
|
||||||
clientMutationId = clientMutationId,
|
clientMutationId = clientMutationId,
|
||||||
chapters = chapters
|
chapters = chapters
|
||||||
|
|||||||
Reference in New Issue
Block a user