mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-16 13:48:09 -07:00
Make MangaCoverViewModel collect manga only while subscribed (#3716)
Assisted-by: Claude:claude-opus-5
This commit is contained in:
@@ -33,7 +33,7 @@ class MangaRepositoryImpl(
|
||||
.awaitAsOne()
|
||||
}
|
||||
|
||||
override suspend fun getMangaByIdAsFlow(id: Long): Flow<Manga> {
|
||||
override fun getMangaByIdAsFlow(id: Long): Flow<Manga> {
|
||||
return database.mangasQueries
|
||||
.getMangaById(id, MangaMapper::mapManga)
|
||||
.subscribeToOne()
|
||||
|
||||
Reference in New Issue
Block a user