Skip to content

Commit

Permalink
Hämta inte senaste händelser från framtiden
Browse files Browse the repository at this point in the history
  • Loading branch information
bonny committed Apr 24, 2024
1 parent 9cdf58e commit bc526d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,7 @@ public static function getLatestEventsByParsedDate(int $count = 5) {

$events = Cache::remember($cacheKey, 2 * 60, function () use ($count) {
$events = CrimeEvent::orderBy("parsed_date", "desc")
->where('parsed_date', '<', Carbon::now())
->with('locations')
->limit($count)
->get();
Expand Down

0 comments on commit bc526d5

Please sign in to comment.