Update DeleteAccountPipeline queue

This commit is contained in:
Daniel Supernault 2022-10-31 03:31:38 -06:00
parent 6b92c64851
commit 85794784d4
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 3 additions and 3 deletions

View file

@ -290,7 +290,7 @@ trait AdminReportController
->save(); ->save();
Cache::forget('profiles:private'); Cache::forget('profiles:private');
DeleteAccountPipeline::dispatch($user)->onQueue('high'); DeleteAccountPipeline::dispatch($user);
return; return;
} }

View file

@ -222,7 +222,7 @@ trait AdminUserController
->save(); ->save();
Cache::forget('profiles:private'); Cache::forget('profiles:private');
DeleteAccountPipeline::dispatch($user)->onQueue('high'); DeleteAccountPipeline::dispatch($user);
$msg = "Successfully deleted {$user->username}!"; $msg = "Successfully deleted {$user->username}!";
$request->session()->flash('status', $msg); $request->session()->flash('status', $msg);
@ -294,4 +294,4 @@ trait AdminUserController
$request->session()->flash('status', $msg); $request->session()->flash('status', $msg);
return redirect('/i/admin/users/modlogs/' . $user->id); return redirect('/i/admin/users/modlogs/' . $user->id);
} }
} }