diff --git a/classes/ApiHelper.php b/classes/ApiHelper.php index ad1dcec..d40214e 100644 --- a/classes/ApiHelper.php +++ b/classes/ApiHelper.php @@ -98,8 +98,10 @@ class ApiHelper { try { $request = $this->crmClient->customersFixExternalIds( array( - 'id' => $customers['customers'][0]['id'], - 'externalId' => $order['externalId'] + array( + 'id' => $customers['customers'][0]['id'], + 'externalId' => $order['externalId'] + ) ) ); diff --git a/run.php b/run.php index 2fcd4b5..04d8762 100644 --- a/run.php +++ b/run.php @@ -25,7 +25,7 @@ if (file_exists(__DIR__ . "/logs/sync.log")) { $config['date_from'] = file_get_contents(__DIR__ . "/logs/sync.log"); } -$apiHelper = new ApiHelper($сonfig); +$apiHelper = new ApiHelper($config); if ($apiHelper->processXMLOrders()) { unlink($lockFile);