From 7e6ced1d09dab5e1a672ae5ac497bf70ef5c35c4 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Fri, 15 Aug 2025 19:23:38 +0200 Subject: [PATCH] Fix manga migration with disabled category step Should have been included in 1f555314365b85fdf207d07b60bc1184e4bad4b2 fixes #1000 --- src/modules/manga/services/Mangas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/manga/services/Mangas.ts b/src/modules/manga/services/Mangas.ts index 2b006a41..0aa849e2 100644 --- a/src/modules/manga/services/Mangas.ts +++ b/src/modules/manga/services/Mangas.ts @@ -405,7 +405,7 @@ export class Mangas { migrateCategories: boolean, removeMangaFromCategories: boolean, ): MigrateAction { - if (!mangaToMigrateFrom?.categories) { + if (migrateCategories && !mangaToMigrateFrom?.categories) { throw new Error('Categories are missing'); }