diff --git a/classes/ApiHelper.php b/classes/ApiHelper.php index d40214e..b4b862a 100644 --- a/classes/ApiHelper.php +++ b/classes/ApiHelper.php @@ -48,7 +48,7 @@ class ApiHelper { $orders = $this->filterOrders($orders); - $this->uploadOrders($orders); + return $this->uploadOrders($orders); } protected function uploadOrders($orders) { diff --git a/run.php b/run.php index 04d8762..a6e5047 100644 --- a/run.php +++ b/run.php @@ -19,7 +19,7 @@ if (file_exists($lockFile)) { } } -file_put_contents("run.lock", strtotime('+5 minutes')); +file_put_contents($lockFile, strtotime('+5 minutes')); if (file_exists(__DIR__ . "/logs/sync.log")) { $config['date_from'] = file_get_contents(__DIR__ . "/logs/sync.log");