Revert "Fixed: Delete member synchronously"
This reverts commit f3c907c624
.
This commit is contained in:
parent
f3c907c624
commit
58756b6094
|
@ -114,7 +114,7 @@ class MemberController extends Controller
|
||||||
public function destroy(Member $member): RedirectResponse
|
public function destroy(Member $member): RedirectResponse
|
||||||
{
|
{
|
||||||
if ($member->nami_id) {
|
if ($member->nami_id) {
|
||||||
DeleteJob::dispatchNow($member->nami_id);
|
DeleteJob::dispatch($member->nami_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
$member->delete();
|
$member->delete();
|
||||||
|
|
|
@ -116,7 +116,7 @@ class MemberRequest extends FormRequest
|
||||||
NamiPutMemberAction::run($member->fresh(), null, null);
|
NamiPutMemberAction::run($member->fresh(), null, null);
|
||||||
}
|
}
|
||||||
if (!$this->input('has_nami') && null !== $member->nami_id) {
|
if (!$this->input('has_nami') && null !== $member->nami_id) {
|
||||||
DeleteJob::dispatchNow($member->nami_id);
|
DeleteJob::dispatch($member->nami_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue