We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit c3db48dd authored by Rik ter Beek's avatar Rik ter Beek Committed by GitHub

Merge pull request #195 from florisgoumans/develop

Fix duplicate notifications
parents 5c5b4c20 0a9c2398
...@@ -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