Fix manga migration with disabled category step

Should have been included in 1f55531436

fixes #1000
This commit is contained in:
schroda
2025-08-15 19:23:38 +02:00
parent c4663d9e23
commit 7e6ced1d09

View File

@@ -405,7 +405,7 @@ export class Mangas {
migrateCategories: boolean, migrateCategories: boolean,
removeMangaFromCategories: boolean, removeMangaFromCategories: boolean,
): MigrateAction { ): MigrateAction {
if (!mangaToMigrateFrom?.categories) { if (migrateCategories && !mangaToMigrateFrom?.categories) {
throw new Error('Categories are missing'); throw new Error('Categories are missing');
} }