dont throw error when item is not avail
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-15 15:45:37 +03:30
parent 2a36e9e831
commit 744c93a7ca
@@ -206,7 +206,12 @@ export class CartService {
const cart = await this.getOrCreateCart(userId, restaurantId); const cart = await this.getOrCreateCart(userId, restaurantId);
for (const addItemDto of bulkAddItemsDto.items) { for (const addItemDto of bulkAddItemsDto.items) {
try {
await this.itemService.addOrIncrementItem(cart, addItemDto.foodId, restaurantId, addItemDto.quantity); await this.itemService.addOrIncrementItem(cart, addItemDto.foodId, restaurantId, addItemDto.quantity);
} catch (err) {
console.log(err);
}
} }
return this.recalculateAndSaveCart(cart); return this.recalculateAndSaveCart(cart);