We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit 0a9c2398 authored by Floris Goumans's avatar Floris Goumans

Fix duplicate notifications

parent fbb6d058
...@@ -49,8 +49,12 @@ class Notification extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb ...@@ -49,8 +49,12 @@ class Notification extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
->from(['notification' => $this->getTable('adyen_notification')]) ->from(['notification' => $this->getTable('adyen_notification')])
->where('notification.pspreference=?', $pspReference) ->where('notification.pspreference=?', $pspReference)
->where('notification.event_code=?', $eventCode) ->where('notification.event_code=?', $eventCode)
->where('notification.success=?', $success) ->where('notification.success=?', $success);
->where('notification.original_reference=?', $originalReference);
if ($originalReference) {
$select->where('notification.original_reference=?', $originalReference);
}
return $this->getConnection()->fetchAll($select); return $this->getConnection()->fetchAll($select);
} }
} }
\ No newline at end of file
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