mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Load settings properly in SendUpcomingAuditReport command
This commit is contained in:
parent
3594ed67d1
commit
6f639f7bf0
|
@ -43,7 +43,7 @@ class SendUpcomingAuditReport extends Command
|
|||
*/
|
||||
public function handle()
|
||||
{
|
||||
|
||||
$settings = Setting::getSettings();
|
||||
$interval = $settings->audit_warning_days ?? 0;
|
||||
$today = Carbon::now();
|
||||
$interval_date = $today->copy()->addDays($interval);
|
||||
|
|
Loading…
Reference in a new issue