Skip to content

Commit

Permalink
fixes delete account requests
Browse files Browse the repository at this point in the history
  • Loading branch information
florence-77 committed Oct 9, 2023
1 parent a5a307d commit 75823f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/DeleteAccountRequestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public function myIndex(): JsonResponse
{
$this->authorize('accessList', DeleteAccountRequest::class);

return $this->success(DeleteAccountRequest::findOrFail(auth()->id()));
// return $this->success(DeleteAccountRequest::where('user_id', $request->user()->id)->first());
return $this->success(DeleteAccountRequest::where('user_id', auth()->id())->first());
}

/**
Expand Down

0 comments on commit 75823f6

Please sign in to comment.