mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
commit
64d7edf513
@ -79,6 +79,8 @@ class SelfUpdateController extends BaseController
|
|||||||
}
|
}
|
||||||
catch(GitException $e) {
|
catch(GitException $e) {
|
||||||
info($e->getMessage());
|
info($e->getMessage());
|
||||||
|
return response()->json(['message'=>$e->getMessage()], 500);
|
||||||
|
|
||||||
}
|
}
|
||||||
info("Are there any changes to pull? " . $repo->hasChanges());
|
info("Are there any changes to pull? " . $repo->hasChanges());
|
||||||
|
|
||||||
|
@ -392,6 +392,8 @@ class Import implements ShouldQueue
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$client->contacts()->forceDelete();
|
||||||
|
|
||||||
if (array_key_exists('contacts', $resource)) { // need to remove after importing new migration.json
|
if (array_key_exists('contacts', $resource)) { // need to remove after importing new migration.json
|
||||||
$modified_contacts = $resource['contacts'];
|
$modified_contacts = $resource['contacts'];
|
||||||
|
|
||||||
@ -403,9 +405,11 @@ class Import implements ShouldQueue
|
|||||||
unset($modified_contacts[$key]['id']);
|
unset($modified_contacts[$key]['id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$saveable_contacts['contacts'] = $modified_contacts;
|
$saveable_contacts['contacts'] = $modified_contacts;
|
||||||
|
|
||||||
$contact_repository->save($saveable_contacts, $client);
|
$contact_repository->save($saveable_contacts, $client);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$key = "clients_{$resource['id']}";
|
$key = "clients_{$resource['id']}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user