From b98c1a0627af046851375092743e9d2b72461d22 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Wed, 18 Oct 2023 13:25:34 -0700 Subject: [PATCH] fixes getExpiringLicenses query --- app/Models/License.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/License.php b/app/Models/License.php index 44f1f45b70..0cec4a7cd4 100755 --- a/app/Models/License.php +++ b/app/Models/License.php @@ -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();