A free open source IT asset/license management system
Respect the default value of 60 days in expiring licenses
Ivan Nieto Vivancoa05795420a0c
diff --git a/app/Models/License.php b/app/Models/License.phpindex 9bd7627f94..37a0e8d411 100755--- a/app/Models/License.php+++ b/app/Models/License.php@@ -627,8 +627,8 @@ class License extends Depreciable*/public static function getExpiringLicenses($days = 60){- $days = (is_null($days)) ? 30 : $days;-+ $days = (is_null($days)) ? 60 : $days;+return License::whereNotNull('expiration_date')->whereNull('deleted_at')->whereRaw(DB::raw('DATE_SUB(`expiration_date`,INTERVAL '.$days.' DAY) <= DATE(NOW()) '))