I am observing controller_action_postdispatch_checkout_cart_add, in some cases if customer adds a product we have to reset to quantity 1
$productId= $this->_request->getParam('product');
$productAdded = $this->_productRepository->getById($productId);
$item= $quote->getItemByProduct($productAdded);
$item_id= $item->getItemId();
$params[$item_id]['qty'] = 1;
$params = array(
'product' => $productId,
'qty' => 1,
);
echo $item_id;
$quote->updateItem($item_id,$params);
But updateItem expects 3 parameters
public function updateItem($itemId, $buyRequest, $params = null)
What would be $buyRequest in my case
or there is another way to update quantity in cart