mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-15 23:12:48 +01:00
chore: use the new function format to map the manga.
Signed-off-by: KaiserBh <kaiserbh@proton.me>
This commit is contained in:
parent
fd63383d74
commit
ad17884dec
@ -22,7 +22,7 @@ import logcat.LogPriority
|
|||||||
import tachiyomi.core.util.system.logcat
|
import tachiyomi.core.util.system.logcat
|
||||||
import tachiyomi.data.Chapters
|
import tachiyomi.data.Chapters
|
||||||
import tachiyomi.data.DatabaseHandler
|
import tachiyomi.data.DatabaseHandler
|
||||||
import tachiyomi.data.manga.mangaMapper
|
import tachiyomi.data.manga.MangaMapper.mapManga
|
||||||
import tachiyomi.domain.category.interactor.GetCategories
|
import tachiyomi.domain.category.interactor.GetCategories
|
||||||
import tachiyomi.domain.manga.interactor.GetFavorites
|
import tachiyomi.domain.manga.interactor.GetFavorites
|
||||||
import tachiyomi.domain.manga.model.Manga
|
import tachiyomi.domain.manga.model.Manga
|
||||||
@ -172,7 +172,7 @@ class SyncManager(
|
|||||||
* @return a list of all manga stored in the database
|
* @return a list of all manga stored in the database
|
||||||
*/
|
*/
|
||||||
private suspend fun getAllMangaFromDB(): List<Manga> {
|
private suspend fun getAllMangaFromDB(): List<Manga> {
|
||||||
return handler.awaitList { mangasQueries.getAllManga(mangaMapper) }
|
return handler.awaitList { mangasQueries.getAllManga(::mapManga) }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user