diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index 4bc3e6a76105..4742bfe91abc 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -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;