delete variant
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user