update food entity

This commit is contained in:
2026-02-08 09:09:21 +03:30
parent 8af4936ed0
commit 6be6a66079
8 changed files with 2 additions and 270 deletions
@@ -59,12 +59,6 @@ export class CartItemService {
async addOrIncrementItem(cart: Cart, foodId: string, restaurantId: string, quantityToAdd: number): Promise<void> {
const food = await this.validationService.validateAndGetFood(foodId, restaurantId, quantityToAdd);
// Validate meal type compatibility
this.validationService.assertMealTypeCompatibility(food);
// Validate weekday compatibility
this.validationService.assertWeekdayCompatibility(food);
const index = this.getItemIndex(cart, food.id);
if (index < 0) {