diff --git a/app/Subscription.php b/app/Subscription.php index ca720506..31b021a8 100755 --- a/app/Subscription.php +++ b/app/Subscription.php @@ -41,8 +41,8 @@ public function scopeDashboardExpiring($query) { return $query ->with(['members' => function ($query) { - $query->where('status', '=', \constStatus::Active); - }]) + $query->where('status', '=', \constStatus::Active); + }]) ->where('end_date', '<', Carbon::today()->addDays(7)) ->where('status', '=', \constSubscription::onGoing); }