Ensure chapter order is retained when passed to source.getMangaUpdate
This commit is contained in:
@@ -58,6 +58,7 @@ class UpdateMangaFromRemote(
|
|||||||
): Result<RemoteMangaUpdate> {
|
): Result<RemoteMangaUpdate> {
|
||||||
return try {
|
return try {
|
||||||
val chapters = chapterRepository.getChapterByMangaId(manga.id)
|
val chapters = chapterRepository.getChapterByMangaId(manga.id)
|
||||||
|
.sortedBy { it.sourceOrder }
|
||||||
val update = withIOContext {
|
val update = withIOContext {
|
||||||
source.getMangaUpdate(
|
source.getMangaUpdate(
|
||||||
manga = manga.toSManga(),
|
manga = manga.toSManga(),
|
||||||
|
|||||||
Reference in New Issue
Block a user