mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 12:42:36 +01:00
Fixes for ninja users
This commit is contained in:
parent
8b855003a1
commit
9bcd4e028b
@ -451,6 +451,12 @@ trait GenerateMigrationResources
|
||||
$agts = AccountGatewayToken::where('client_id', $ninja_client->id)->get();
|
||||
$is_default = true;
|
||||
|
||||
if(count($agts) == 0) {
|
||||
$transformed[] = [
|
||||
'client' => $ninja_client
|
||||
];
|
||||
}
|
||||
|
||||
foreach($agts as $agt) {
|
||||
|
||||
$payment_method = $agt->default_payment_method;
|
||||
|
Loading…
Reference in New Issue
Block a user