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