diff --git a/app/Models/Schedule.php b/app/Models/Schedule.php index 3f857cbd8..cab081de0 100644 --- a/app/Models/Schedule.php +++ b/app/Models/Schedule.php @@ -176,7 +176,7 @@ class Schedule extends Model implements HasPresenter */ 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()); } /**