delete variant

This commit is contained in:
2026-02-13 19:12:10 +03:30
parent afd263523d
commit 6ee18d4ae1
5 changed files with 25 additions and 0 deletions
@@ -1103,6 +1103,11 @@ class ProductService {
}
}
async softDeleteProductVariant(variantId: string) {
await this.productVariantRepo.model.findOneAndUpdate({ _id: variantId }, { deleted: true });
return { message: 'Deleted successfully' }
}
//################################################################
async cloneProduct(ownerId: string, productId: number) {
const product = await this.validateProduct(productId, ownerId);