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