Copy categories over from the original manga to the merged manga
This commit is contained in:
parent
a8b1e8fdb0
commit
0b68bb20a8
@ -433,6 +433,13 @@ class MangaPresenter(
|
||||
val newId = db.insertManga(mergedManga).await().insertedId()
|
||||
if (newId != null) mergedManga.id = newId
|
||||
|
||||
db.getCategoriesForManga(originalManga)
|
||||
.await()
|
||||
.map { MangaCategory.create(mergedManga, it) }
|
||||
.let {
|
||||
db.insertMangasCategories(it).await()
|
||||
}
|
||||
|
||||
val originalMangaReference = MergedMangaReference(
|
||||
id = null,
|
||||
isInfoManga = true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user