We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d484d1 commit ae4a66fCopy full SHA for ae4a66f
Model/Consumer.php
@@ -110,7 +110,11 @@ public function processMessage(MessageInterface $message)
110
return;
111
}
112
// refresh stock index to have current stock data
113
- $this->indexerProcessor->reindexList([$product->getId()], true);
+ try {
114
+ $this->indexerProcessor->reindexList([$product->getId()], true);
115
+ } catch (\Exception $exception) {
116
+ // ignore elastic-suite indexer exception related to not set area code
117
+ }
118
$productStock = $this->getSalableQuantityDataBySku->execute($product->getSku());
119
if (isset($productStock[0]) && isset($productStock[0]['qty'])) {
120
$qty = $productStock[0]['qty'];
0 commit comments