Load settings properly in SendUpcomingAuditReport command

This commit is contained in:
Marcus Moore 2024-05-06 16:44:14 -07:00
parent 3594ed67d1
commit 6f639f7bf0
No known key found for this signature in database

View file

@ -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);