fix run.php and ApiHelper.php
This commit is contained in:
parent
233071dd51
commit
1dccc60f9e
2 changed files with 5 additions and 3 deletions
|
@ -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']
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
|
|
2
run.php
2
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue