fix : create category variant

This commit is contained in:
morteza-mortezai
2025-10-25 19:36:36 +03:30
parent 3caa943a1b
commit 3053b57056
+1 -1
View File
@@ -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);