Skip to content

Commit

Permalink
Force deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
alainvd committed Dec 13, 2024
1 parent 5b2a7dc commit 5506c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Jobs/ProcessUserDeletion.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function handle()
->update(['approved_by' => $this->legacyUserId]);

// Hard delete the user
User::where('id', $this->userId)->delete();
User::where('id', $this->userId)->forceDelete();

DB::commit();
Log::info("Successfully deleted user ID: {$this->userId}");
Expand Down

0 comments on commit 5506c42

Please sign in to comment.