From adba2d5b6cbe974b7742ed8ab6567407bc38bb3c Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 15 Jan 2024 16:11:31 +0000 Subject: [PATCH] Remove 7 day padding for expected assets Signed-off-by: snipe --- app/Console/Commands/SendExpectedCheckinAlerts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/SendExpectedCheckinAlerts.php b/app/Console/Commands/SendExpectedCheckinAlerts.php index 6533899ef..34e9609ce 100644 --- a/app/Console/Commands/SendExpectedCheckinAlerts.php +++ b/app/Console/Commands/SendExpectedCheckinAlerts.php @@ -43,7 +43,7 @@ class SendExpectedCheckinAlerts extends Command public function handle() { $settings = Setting::getSettings(); - $whenNotify = Carbon::now()->addDays(7); + $whenNotify = Carbon::now(); $assets = Asset::with('assignedTo')->whereNotNull('assigned_to')->whereNotNull('expected_checkin')->where('expected_checkin', '<=', $whenNotify)->get(); $this->info($whenNotify.' is deadline');