From 3655e810110ac385a1d80621d56647f18ec7128c Mon Sep 17 00:00:00 2001 From: Frosin <31651395+Frosin@users.noreply.github.com> Date: Wed, 14 Aug 2019 22:01:30 +0300 Subject: [PATCH] fixed bugs (#14) --- classes/ApiHelper.php | 2 +- run.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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");