Skip to content

Commit

Permalink
fix: update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskorbakov committed Oct 27, 2024
1 parent 7bd1676 commit 4e0feea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function achievement(int $id): array
$achievementsTeam = Team::query()->find($id);
$achievementPersonal = User::query()->find($id);

if(!$achievementPersonal && !$achievementsTeam)
if(!$achievementPersonal || !$achievementsTeam)
{
return [];
}
Expand Down

0 comments on commit 4e0feea

Please sign in to comment.