diff --git a/app/Http/Controllers/DeleteAccountRequestController.php b/app/Http/Controllers/DeleteAccountRequestController.php index 3ded59a..531937f 100644 --- a/app/Http/Controllers/DeleteAccountRequestController.php +++ b/app/Http/Controllers/DeleteAccountRequestController.php @@ -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()); } /**