Add Bank account to NAmi put action

This commit is contained in:
philipp lang 2025-03-30 03:42:31 +02:00
parent 471c636a22
commit c91814edd7
1 changed files with 2 additions and 0 deletions
app/Member/Actions

View File

@ -10,6 +10,7 @@ use App\Member\Member;
use App\Setting\NamiSettings;
use App\Subactivity;
use Lorisleiva\Actions\Concerns\AsAction;
use Zoomyboy\LaravelNami\Data\BankAccount;
use Zoomyboy\LaravelNami\Data\Member as NamiMember;
class NamiPutMemberAction
@ -47,6 +48,7 @@ class NamiPutMemberAction
'id' => $member->nami_id,
'version' => $member->version,
'keepdata' => $member->keepdata,
'bankAccount' => BankAccount::from([]),
]);
$response = $api->putMember($namiMember, $activity ? $activity->nami_id : null, $subactivity ? $subactivity->nami_id : null);
Member::withoutEvents(function () use ($response, $member) {