Skip to content

Commit

Permalink
Last hour comparison fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
eboye authored and romanzipp committed Sep 13, 2018
1 parent b3d73ed commit 0286bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Monitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function scopeOrdered($query)

public function scopeLastHour($query)
{
return $query->where('started_at', '<', Carbon::now()->subHours(1));
return $query->where('started_at', '>', Carbon::now()->subHours(1));
}

public function scopeToday($query)
Expand Down

0 comments on commit 0286bc2

Please sign in to comment.