From 3053b57056a98841ef2fc488f3b0da15d8a23fe5 Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Sat, 25 Oct 2025 19:36:36 +0330 Subject: [PATCH] fix : create category variant --- src/modules/category/category.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/category/category.service.ts b/src/modules/category/category.service.ts index 0964603..fcc3e8b 100644 --- a/src/modules/category/category.service.ts +++ b/src/modules/category/category.service.ts @@ -214,7 +214,7 @@ class CategoryService { const category = await this.checkCategoryId(catId); // Check if the theme already exists - if (category.theme) throw new BadRequestError(CategoryMessage.AlreadyExist); + // if (category.theme) throw new BadRequestError(CategoryMessage.AlreadyExist); // Ensure the theme matches the provided attributes and create variants const variantRefs = await this.createVariantsBasedOnTheme(session, theme, colors, sizes, meterages);