FIX_DASHBOARD ACTIVE MEMBERS COUNT ISSUE

This commit is contained in:
Srinivas-Saravanan 2024-12-23 14:00:23 +05:30
parent b4427e6b63
commit 17bce828ff

View File

@ -116,9 +116,9 @@ class HomeModel extends Model
->select('books.business_id,books.title as name ,scheme_id, books.short_code, count(*) as overall')
->join('books','books.book_id = subscription.scheme_id')
->where('to_subscription>now()')
->where('to_subscription>=CURDATE()')
->where('subscription.isactive',1)
->groupBy('scheme_id');
->groupBy('scheme_id');
$results = $query->get()->getResultArray();
return $results;
}