Skip to content

Commit

Permalink
fix (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 authored Nov 24, 2024
1 parent 2f4e3ff commit 775b578
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/RedirectToElectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public function __invoke(?Election $election = null): RedirectResponse
{
$election ??= Election::query()
->where('is_visible', true)
->orderBy('type')
->latest()
->first();

Expand Down

0 comments on commit 775b578

Please sign in to comment.