Set source id when inserting to db (#8300)
(cherry picked from commit 187e9f94aa0ddeef6ad542b2c231b917071eead4)
This commit is contained in:
parent
5ec56b66a4
commit
099fa77149
@ -11,7 +11,7 @@ class NetworkToLocalManga(
|
||||
val localManga = getManga(manga.url, sourceId)
|
||||
return when {
|
||||
localManga == null -> {
|
||||
val id = insertManga(manga)
|
||||
val id = insertManga(manga.copy(source = sourceId))
|
||||
manga.copy(id = id!!)
|
||||
}
|
||||
!localManga.favorite -> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user