fix : create category variant
This commit is contained in:
@@ -214,7 +214,7 @@ class CategoryService {
|
|||||||
const category = await this.checkCategoryId(catId);
|
const category = await this.checkCategoryId(catId);
|
||||||
|
|
||||||
// Check if the theme already exists
|
// 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
|
// Ensure the theme matches the provided attributes and create variants
|
||||||
const variantRefs = await this.createVariantsBasedOnTheme(session, theme, colors, sizes, meterages);
|
const variantRefs = await this.createVariantsBasedOnTheme(session, theme, colors, sizes, meterages);
|
||||||
|
|||||||
Reference in New Issue
Block a user