Fixes for ninja users
This commit is contained in:
parent
8b855003a1
commit
9bcd4e028b
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue