Fixes for gateway migration

This commit is contained in:
David Bomba 2025-01-22 14:02:23 +11:00
parent cdb8bfef73
commit 07c57e1361
1 changed files with 8 additions and 6 deletions

View File

@ -22,14 +22,16 @@ return new class extends Migration
$gateway = \App\Models\Gateway::where('key','b9886f9257f0c6ee7c302f1c74475f6c')->first(); $gateway = \App\Models\Gateway::where('key','b9886f9257f0c6ee7c302f1c74475f6c')->first();
$fields = json_decode($gateway->fields); if($gateway)
$fields->verifyBankAccount = false; {
$gateway->fields = json_encode($fields); $fields = json_decode($gateway->fields);
$fields->verifyBankAccount = false;
$gateway->fields = json_encode($fields);
$gateway->save(); $gateway->save();
\Illuminate\Support\Facades\Cache::forget('gateways');
\Illuminate\Support\Facades\Cache::forget('gateways');
}
} }