Skip to content

Commit 5506c42

Browse files
author
Alain Van Driessche
committed
Force deletion
1 parent 5b2a7dc commit 5506c42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Jobs/ProcessUserDeletion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function handle()
4545
->update(['approved_by' => $this->legacyUserId]);
4646

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

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

0 commit comments

Comments
 (0)