From 1fdb7909d317afcf12f08b2dd9b732b5adab6906 Mon Sep 17 00:00:00 2001 From: thomasxd24 Date: Fri, 5 Oct 2018 19:34:00 +0200 Subject: [PATCH] Revert schedule maintenance commit of de172e5defa4ac226044e3066413487fdee49de0 have made the schedule maintenance disappear completely. This PR reverts the change. Please fix the change or revert back. --- app/Models/Schedule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Schedule.php b/app/Models/Schedule.php index cab081de0..3f857cbd8 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('completed_at', '>=', Carbon::now()); + return $query->whereIn('status', [self::UPCOMING, self::IN_PROGRESS])->where('scheduled_at', '>=', Carbon::now()); } /**