diff --git a/app/Jobs/Common/DeleteContact.php b/app/Jobs/Common/DeleteContact.php index c12b8a2e6..3c6a756b0 100644 --- a/app/Jobs/Common/DeleteContact.php +++ b/app/Jobs/Common/DeleteContact.php @@ -3,6 +3,7 @@ namespace App\Jobs\Common; use App\Abstracts\Job; +use App\Jobs\Auth\DeleteUser; use App\Traits\Contacts; class DeleteContact extends Job @@ -30,6 +31,10 @@ class DeleteContact extends Job { $this->authorize(); + if ($user = $this->contact->user) { + $this->dispatch(new DeleteUser($user)); + } + $this->contact->delete(); return true;