fixes getExpiringLicenses query

This commit is contained in:
Godfrey M 2023-10-18 13:25:34 -07:00
parent 7bda5c06de
commit b98c1a0627

View file

@ -668,7 +668,7 @@ class License extends Depreciable
return self::whereNotNull('expiration_date')
->whereNull('deleted_at')
->whereRaw(DB::raw('DATE_SUB(`expiration_date`,INTERVAL '.$days.' DAY) <= DATE(NOW()) '))
->whereRaw('DATE_SUB(`expiration_date`,INTERVAL '.$days.' DAY) <= DATE(NOW()) ')
->where('expiration_date', '>', date('Y-m-d'))
->orderBy('expiration_date', 'ASC')
->get();