Skip to content

Commit

Permalink
Update AccountController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Laeng authored Jul 28, 2024
1 parent ae61758 commit 969285a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Http/Controllers/App/Account/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 969285a

Please sign in to comment.