Merge pull request #5816 from turbo124/master

Fixes for migration
This commit is contained in:
David Bomba 2021-05-26 07:30:35 +10:00 committed by GitHub
commit 9c8d0ba3cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,6 +373,8 @@ info("get company");
'gateway_type_id' => $payment_method->payment_type->gateway_type_id, 'gateway_type_id' => $payment_method->payment_type->gateway_type_id,
'is_default' => $is_default, 'is_default' => $is_default,
'meta' => $this->convertMeta($payment_method), 'meta' => $this->convertMeta($payment_method),
'client' => $contact->client->toArray(),
'contacts' => $contact->client->contacts->toArray(),
]; ];
} }
@ -1368,6 +1370,9 @@ info("translated gateway_type = {$translated_gateway_type}");
'custom_value2' => '', 'custom_value2' => '',
'custom_value3' => '', 'custom_value3' => '',
'custom_value4' => '', 'custom_value4' => '',
'created_at' => $account_gateway->created_at ? Carbon::parse($account_gateway->created_at)->toDateString() : null,
'updated_at' => $account_gateway->updated_at ? Carbon::parse($account_gateway->updated_at)->toDateString() : null,
'deleted_at' => $account_gateway->deleted_at ? Carbon::parse($account_gateway->deleted_at)->toDateString() : null,
]; ];
// } // }
} }