Merge pull request #7449 from turbo124/master

Fixes for ninja users
This commit is contained in:
David Bomba 2022-05-19 17:41:10 +10:00 committed by GitHub
commit 0a39fbb141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;