We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b2a7dc commit 5506c42Copy full SHA for 5506c42
1 file changed
app/Jobs/ProcessUserDeletion.php
@@ -45,7 +45,7 @@ public function handle()
45
->update(['approved_by' => $this->legacyUserId]);
46
47
// Hard delete the user
48
- User::where('id', $this->userId)->delete();
+ User::where('id', $this->userId)->forceDelete();
49
50
DB::commit();
51
Log::info("Successfully deleted user ID: {$this->userId}");
0 commit comments