Skip to content

Commit ae4a66f

Browse files
authored
Fix issue related to elastic-suite indexer (#52)
1 parent 0d484d1 commit ae4a66f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Model/Consumer.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ public function processMessage(MessageInterface $message)
110110
return;
111111
}
112112
// refresh stock index to have current stock data
113-
$this->indexerProcessor->reindexList([$product->getId()], true);
113+
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+
}
114118
$productStock = $this->getSalableQuantityDataBySku->execute($product->getSku());
115119
if (isset($productStock[0]) && isset($productStock[0]['qty'])) {
116120
$qty = $productStock[0]['qty'];

0 commit comments

Comments
 (0)