Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit c7d9130

Browse files
committed
Remove looped item save
CartItemRepositoryInterface::save trigger quote collection and save. The update cart items resolver accepts multiple quote items and save the quote. Saving each quote item increases the quote save by the number of items passed in the update request.
1 parent 493e052 commit c7d9130

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/UpdateCartItem.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ private function updateItemQuantity(int $itemId, Quote $cart, float $quantity)
117117
}
118118
$cartItem->setQty($quantity);
119119
$this->validateCartItem($cartItem);
120-
$this->cartItemRepository->save($cartItem);
121120
}
122121

123122
/**

0 commit comments

Comments
 (0)