Copy categories over from the original manga to the merged manga

This commit is contained in:
Jobobby04 2020-10-19 16:08:11 -04:00
parent a8b1e8fdb0
commit 0b68bb20a8

View File

@ -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,