Skip to content

Commit

Permalink
fix: personnel year list ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
keenthekeen committed Oct 26, 2023
1 parent 4f76ccb commit 2d23f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Personnel.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ public static function getYear($year = null): Collection

public static function getYearList(): array
{
return Cache::remember('personnel-year-list', 7200, fn() => self::pluck('year')->unique()->sortDesc()->toArray());
return Cache::remember('personnel-year-list', 7200, fn() => self::pluck('year')->unique()->sortDesc()->values());
}
}

0 comments on commit 2d23f11

Please sign in to comment.