cart
This commit is contained in:
@@ -178,7 +178,7 @@ export class CartService {
|
||||
const cart = await this.getOrCreateCart(userId, shopId);
|
||||
|
||||
for (const addItemDto of bulkAddItemsDto.items) {
|
||||
await this.itemService.addOrIncrementItem(cart, addItemDto.productId, shopId, addItemDto.quantity);
|
||||
await this.itemService.addOrIncrementItem(cart, addItemDto.variantId, shopId, addItemDto.quantity);
|
||||
}
|
||||
|
||||
return this.recalculateAndSaveCart(cart);
|
||||
|
||||
Reference in New Issue
Block a user