mirror of
https://github.com/mihonapp/mihon.git
synced 2025-03-14 10:18:30 +03:00
Set source id when inserting to db (#8300)
This commit is contained in:
parent
1704dc062d
commit
187e9f94aa
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue