remove inventory
This commit is contained in:
@@ -240,7 +240,7 @@ export class RestaurantsService {
|
||||
// Delete coupons
|
||||
await em.nativeDelete(Coupon, { shop: id });
|
||||
|
||||
// Delete products (will cascade to reviews, favorites, and inventory due to cascade settings)
|
||||
// Delete products (will cascade to reviews and favorites due to cascade settings)
|
||||
await em.nativeDelete(Product, { shop: id });
|
||||
|
||||
// Delete categories (products should be deleted by cascade, but delete explicitly to be safe)
|
||||
|
||||
Reference in New Issue
Block a user