From 969285a130067335eaceb33beff4782bcf008736 Mon Sep 17 00:00:00 2001 From: Laeng Date: Sun, 28 Jul 2024 22:38:05 +0900 Subject: [PATCH] Update AccountController.php --- app/Http/Controllers/App/Account/AccountController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/App/Account/AccountController.php b/app/Http/Controllers/App/Account/AccountController.php index 8d1f63d..7b8721a 100644 --- a/app/Http/Controllers/App/Account/AccountController.php +++ b/app/Http/Controllers/App/Account/AccountController.php @@ -108,10 +108,11 @@ public function me } $role = $user->roles()->latest()->first(); - $application = $surveyService->getLatestApplicationForm($user->id); - $response = $application->answers()->latest()->get(); + $answers = $application->answers(); + $response = $answers ? $answers->latest()->get() : []; + $naverId = ''; $discordName = ''; $birthday = '';