From 58756b609498d3a6d0c7036d1061198c8a902ddb Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 24 Apr 2023 23:39:08 +0200 Subject: [PATCH] Revert "Fixed: Delete member synchronously" This reverts commit f3c907c6242378002f89ade0ee7809ccaad1a5fd. --- app/Member/MemberController.php | 2 +- app/Member/MemberRequest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Member/MemberController.php b/app/Member/MemberController.php index 63c18636..fdaf36ac 100644 --- a/app/Member/MemberController.php +++ b/app/Member/MemberController.php @@ -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(); diff --git a/app/Member/MemberRequest.php b/app/Member/MemberRequest.php index a441b6e2..cd273587 100644 --- a/app/Member/MemberRequest.php +++ b/app/Member/MemberRequest.php @@ -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); } } }