up
This commit is contained in:
@@ -65,11 +65,7 @@ export class CartService {
|
|||||||
* Find cart by user and restaurant
|
* Find cart by user and restaurant
|
||||||
*/
|
*/
|
||||||
async findOne(userId: string, restaurantId: string): Promise<Cart> {
|
async findOne(userId: string, restaurantId: string): Promise<Cart> {
|
||||||
const cart = await this.getCartByRestaurant(userId, restaurantId);
|
return this.getOrCreateCart(userId, restaurantId);
|
||||||
if (!cart) {
|
|
||||||
return this.getOrCreateCart(userId, restaurantId);
|
|
||||||
}
|
|
||||||
return cart;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user