Commit 46501b3b authored by Oleksandr Gotgelf's avatar Oleksandr Gotgelf
Browse files

CREF-343: CRIT: MNS cronjob references to wrong orders!

parent 6bddc638
......@@ -15,11 +15,6 @@ abstract class AbstractConsumer
*/
protected $orderHelper;
/**
* @var SalesOrder
*/
private $order;
/**
* AckPending constructor.
*
......@@ -56,11 +51,7 @@ abstract class AbstractConsumer
*/
protected function getOrder(MnsEvent $event): SalesOrder
{
if (!$this->order) {
$this->order = $this->orderHelper->getOrderByIncrementId($event->getIncrementOrderId());
}
return $this->order;
return $this->orderHelper->getOrderByIncrementId($event->getIncrementOrderId());
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment