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