Send account deletion emails without queues

This commit is contained in:
DariusIII
2020-01-08 03:57:22 +01:00
parent 14bf2eb3bc
commit e8c2e09efc
+2 -2
View File
@@ -362,9 +362,9 @@ class ProfileController extends BasePageController
$userId = $request->input('id');
if ($userId !== null && (int) $userId === $this->userdata->id && ! $this->userdata->hasRole('Admin')) {
Auth::logout();
$user = User::find($userId);
SendAccountDeletedEmail::dispatch($user)->onQueue('deleted');
SendAccountDeletedEmail::dispatch($user);
Auth::logout();
$user->delete();
}