Convert edit cover function to suspend function (#7330)

This commit is contained in:
Ivan Iskandar
2022-06-18 21:01:03 +07:00
committed by GitHub
parent dd983c803b
commit 28e7009b49
6 changed files with 64 additions and 52 deletions

View File

@@ -58,4 +58,8 @@ class UpdateManga(
suspend fun awaitUpdateLastUpdate(mangaId: Long): Boolean {
return mangaRepository.update(MangaUpdate(id = mangaId, lastUpdate = Date().time))
}
suspend fun awaitUpdateCoverLastModified(mangaId: Long): Boolean {
return mangaRepository.update(MangaUpdate(id = mangaId, coverLastModified = Date().time))
}
}