1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00

Fixes for contacts migration

This commit is contained in:
David Bomba 2021-01-15 22:34:04 +11:00
parent 39adbf3367
commit d84af6be3a

View File

@ -232,7 +232,7 @@ trait GenerateMigrationResources
'shipping_state' => $client->shipping_state,
'shipping_postal_code' => $client->shipping_postal_code,
'shipping_country_id' => $client->shipping_country_id,
'contacts' => $this->getClientContacts($client->contacts),
'contacts' => $this->getClientContacts($client->contacts()->withTrashed()),
'settings' => $this->getClientSettings($client),
'created_at' => $client->created_at ? Carbon::parse($client->created_at)->toDateString() : null,
'updated_at' => $client->updated_at ? Carbon::parse($client->updated_at)->toDateString() : null,