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 76081f24 authored by Shruti Holennavar's avatar Shruti Holennavar

Changed version to 2.0.7 and resetting processing field to 0 when notifications are processed 100%

parent 3a4a37a1
...@@ -331,6 +331,7 @@ class Cron ...@@ -331,6 +331,7 @@ class Cron
// set done to true // set done to true
$dateEnd = new \DateTime(); $dateEnd = new \DateTime();
$notification->setDone(true); $notification->setDone(true);
$notification->setProcessing(false);
$notification->setUpdatedAt($dateEnd); $notification->setUpdatedAt($dateEnd);
$notification->save(); $notification->save();
$this->_adyenLogger->addAdyenNotificationCronjob( $this->_adyenLogger->addAdyenNotificationCronjob(
......
...@@ -59,8 +59,8 @@ class UpgradeSchema implements UpgradeSchemaInterface ...@@ -59,8 +59,8 @@ class UpgradeSchema implements UpgradeSchemaInterface
$this->updateSchemaVersion204($setup); $this->updateSchemaVersion204($setup);
} }
if (version_compare($context->getVersion(), '2.0.6', '<')) { if (version_compare($context->getVersion(), '2.0.7', '<')) {
$this->updateSchemaVersion206($setup); $this->updateSchemaVersion207($setup);
} }
$setup->endSetup(); $setup->endSetup();
...@@ -269,12 +269,12 @@ class UpgradeSchema implements UpgradeSchemaInterface ...@@ -269,12 +269,12 @@ class UpgradeSchema implements UpgradeSchemaInterface
/** /**
* Upgrade to 2.0.6 * Upgrade to 2.0.7
* *
* @param SchemaSetupInterface $setup * @param SchemaSetupInterface $setup
* @return void * @return void
*/ */
public function updateSchemaVersion206(SchemaSetupInterface $setup) public function updateSchemaVersion207(SchemaSetupInterface $setup)
{ {
$connection = $setup->getConnection(); $connection = $setup->getConnection();
$tableName = $setup->getTable('adyen_notification'); $tableName = $setup->getTable('adyen_notification');
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
--> -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Adyen_Payment" setup_version="2.0.6"> <module name="Adyen_Payment" setup_version="2.0.7">
<sequence> <sequence>
<module name="Magento_Sales"/> <module name="Magento_Sales"/>
<module name="Magento_Quote"/> <module name="Magento_Quote"/>
......
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