mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Respect the default value of 60 days in expiring licenses
This commit is contained in:
parent
42d86bf57b
commit
a05795420a
|
@ -627,7 +627,7 @@ class License extends Depreciable
|
||||||
*/
|
*/
|
||||||
public static function getExpiringLicenses($days = 60)
|
public static function getExpiringLicenses($days = 60)
|
||||||
{
|
{
|
||||||
$days = (is_null($days)) ? 30 : $days;
|
$days = (is_null($days)) ? 60 : $days;
|
||||||
|
|
||||||
return License::whereNotNull('expiration_date')
|
return License::whereNotNull('expiration_date')
|
||||||
->whereNull('deleted_at')
|
->whereNull('deleted_at')
|
||||||
|
|
Loading…
Reference in a new issue