refactor(manga): Turn getHistory() to a suspend func

This commit is contained in:
Ahmad Ansori Palembani 2024-12-23 05:54:47 +07:00
parent 07f9e921f1
commit 4caefff11d
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -285,10 +285,8 @@ class MangaDetailsPresenter(
this.chapters = applyChapterFilters(chapters)
}
private fun getHistory() {
presenterScope.launchIO {
allHistory = getHistory.awaitAllByMangaId(mangaId)
}
private suspend fun getHistory() {
allHistory = getHistory.awaitAllByMangaId(mangaId)
}
/**