Skip to content

Commit

Permalink
Merge pull request #3266 from thomasxd24/patch-1
Browse files Browse the repository at this point in the history
Revert schedule maintenance
  • Loading branch information
jbrooksuk committed Oct 15, 2018
2 parents 5e62a93 + 1fdb790 commit 40e9815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function scopeInProgress(Builder $query)
*/
public function scopeFutureSchedules($query)
{
return $query->whereIn('status', [self::UPCOMING, self::IN_PROGRESS])->where('completed_at', '>=', Carbon::now());
return $query->whereIn('status', [self::UPCOMING, self::IN_PROGRESS])->where('scheduled_at', '>=', Carbon::now());
}

/**
Expand Down

0 comments on commit 40e9815

Please sign in to comment.