fix: Category data is not migrated

This commit is contained in:
Ahmad Ansori Palembani 2024-11-30 08:40:15 +07:00
parent 07c1e7e67f
commit 7a20537cf9
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -220,7 +220,7 @@ class MigrationProcessAdapter(
// Update categories
if (MigrationFlags.hasCategories(flags)) {
val categories = Injekt.get<GetCategories>().awaitByMangaId(prevManga.id)
Injekt.get<SetMangaCategories>().await(prevManga.id, categories.mapNotNull { it.id?.toLong() })
Injekt.get<SetMangaCategories>().await(manga.id, categories.mapNotNull { it.id?.toLong() })
}
// Update track
if (MigrationFlags.hasTracks(flags)) {