From d585ad6756ef60f8251745f139cef9afcf9fd1b7 Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Mon, 1 Dec 2025 12:00:38 +0330 Subject: [PATCH] up --- src/modules/cart/providers/cart.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/cart/providers/cart.service.ts b/src/modules/cart/providers/cart.service.ts index f6b92cb..ad3c160 100644 --- a/src/modules/cart/providers/cart.service.ts +++ b/src/modules/cart/providers/cart.service.ts @@ -67,7 +67,7 @@ export class CartService { async findOne(userId: string, restaurantId: string): Promise { const cart = await this.getCartByRestaurant(userId, restaurantId); if (!cart) { - throw new NotFoundException('Cart not found'); + return this.getOrCreateCart(userId, restaurantId); } return cart; }