Skip to content

Commit

Permalink
Revert schedule maintenance
Browse files Browse the repository at this point in the history
commit of de172e5 have made the schedule maintenance disappear completely. 

This PR reverts the change. Please fix the change or revert back.
  • Loading branch information
thomasxd24 committed Oct 5, 2018
1 parent de172e5 commit 1fdb790
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 1fdb790

Please sign in to comment.