Skip to content

Commit

Permalink
Merge pull request #29 from NOOE-Phygital-Stores/dev
Browse files Browse the repository at this point in the history
update start date when empty orders list
  • Loading branch information
nghelo authored Dec 20, 2022
2 parents 863ff08 + 34d8d6b commit ac55419
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Service/OrderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public function getRegionId($stateCode, $countryId)
*/
public function sync($incrementId = null)
{
$nowDate = date('Y-m-d H:i:s');

// get orders from remote Magento
$orders = $this->order->getList($incrementId);
$totalOrderCount = count((array)$orders);
Expand Down Expand Up @@ -248,6 +250,8 @@ public function sync($incrementId = null)
throw new Exception($e->getMessage());
}
}
} else {
$this->configData->setStartDate($nowDate);
}

$this->emulation->stopEnvironmentEmulation();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nooe/module-connector",
"description": "Nooe Magento 2 Connector",
"type": "magento2-module",
"version": "1.1.4",
"version": "1.1.5",
"minimum-stability": "stable",
"license": "proprietary",
"require": {
Expand Down

0 comments on commit ac55419

Please sign in to comment.