mirror of
https://github.com/mihonapp/mihon.git
synced 2025-02-05 23:04:59 +01:00
Update domain/src/main/java/tachiyomi/domain/manga/interactor/NetworkToLocalManga.kt
This commit is contained in:
parent
b8997ecbc8
commit
cb5025dd18
@ -17,13 +17,11 @@ class NetworkToLocalManga(
|
||||
}
|
||||
!localManga.favorite -> {
|
||||
// if the manga isn't a favorite, update new info from source to db
|
||||
mangaRepository.update(
|
||||
manga.toMangaUpdate()
|
||||
.copy(
|
||||
val mangaUpdate = manga.toMangaUpdate().copy(
|
||||
id = localManga.id,
|
||||
thumbnailUrl = manga.thumbnailUrl?.takeIf { it.isNotBlank() },
|
||||
),
|
||||
thumbnailUrl = manga.thumbnailUrl?.takeUnless { it.isBlank() },
|
||||
)
|
||||
mangaRepository.update(mangaUpdate)
|
||||
manga.copy(id = localManga.id)
|
||||
}
|
||||
else -> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user