Skip to content

Commit

Permalink
Merge pull request cachethq#3236 from Wouter0100/patch-1
Browse files Browse the repository at this point in the history
Show schedules till they are completed
  • Loading branch information
jbrooksuk committed Sep 14, 2018
2 parents f8d4415 + 9b4e8c1 commit de172e5
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('scheduled_at', '>=', Carbon::now());
return $query->whereIn('status', [self::UPCOMING, self::IN_PROGRESS])->where('completed_at', '>=', Carbon::now());
}

/**
Expand Down

0 comments on commit de172e5

Please sign in to comment.