1
0
mirror of synced 2024-11-24 22:16:06 +03:00

fixed bugs (#14)

This commit is contained in:
Frosin 2019-08-14 22:01:30 +03:00 committed by Alex Lushpai
parent d034519254
commit 3655e81011
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class ApiHelper {
$orders = $this->filterOrders($orders); $orders = $this->filterOrders($orders);
$this->uploadOrders($orders); return $this->uploadOrders($orders);
} }
protected function uploadOrders($orders) { protected function uploadOrders($orders) {

View File

@ -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")) { if (file_exists(__DIR__ . "/logs/sync.log")) {
$config['date_from'] = file_get_contents(__DIR__ . "/logs/sync.log"); $config['date_from'] = file_get_contents(__DIR__ . "/logs/sync.log");