Skip to content

Commit 45742cd

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 a3fe77f commit 45742cd

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)