Revert "Fixed: Delete member synchronously"

This reverts commit f3c907c624.
This commit is contained in:
philipp lang 2023-04-24 23:39:08 +02:00
parent f3c907c624
commit 58756b6094
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class MemberController extends Controller
public function destroy(Member $member): RedirectResponse
{
if ($member->nami_id) {
DeleteJob::dispatchNow($member->nami_id);
DeleteJob::dispatch($member->nami_id);
}
$member->delete();

View File

@ -116,7 +116,7 @@ class MemberRequest extends FormRequest
NamiPutMemberAction::run($member->fresh(), null, null);
}
if (!$this->input('has_nami') && null !== $member->nami_id) {
DeleteJob::dispatchNow($member->nami_id);
DeleteJob::dispatch($member->nami_id);
}
}
}