Respect the default value of 60 days in expiring licenses

This commit is contained in:
Ivan Nieto Vivanco 2022-01-18 14:34:14 -06:00
parent 42d86bf57b
commit a05795420a

View file

@ -627,7 +627,7 @@ 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')