From f5a0726f985e3ec324600dd4b7d85ef883c02df6 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 23 Oct 2020 04:46:26 -0700 Subject: [PATCH] Fixed #8597 - Added leading slash to notifications console commands --- app/Console/Commands/SendExpectedCheckinAlerts.php | 2 +- app/Console/Commands/SendExpirationAlerts.php | 4 ++-- app/Console/Commands/SendInventoryAlerts.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/SendExpectedCheckinAlerts.php b/app/Console/Commands/SendExpectedCheckinAlerts.php index d10791200d..f56f6f88c6 100644 --- a/app/Console/Commands/SendExpectedCheckinAlerts.php +++ b/app/Console/Commands/SendExpectedCheckinAlerts.php @@ -58,7 +58,7 @@ class SendExpectedCheckinAlerts extends Command $recipients = collect(explode(',', $settings->alert_email))->map(function ($item, $key) { return new AlertRecipient($item); }); - Notification::send($recipients, new ExpectedCheckinAdminNotification($assets)); + \Notification::send($recipients, new ExpectedCheckinAdminNotification($assets)); } } } diff --git a/app/Console/Commands/SendExpirationAlerts.php b/app/Console/Commands/SendExpirationAlerts.php index 858f33b345..f88c345669 100644 --- a/app/Console/Commands/SendExpirationAlerts.php +++ b/app/Console/Commands/SendExpirationAlerts.php @@ -55,14 +55,14 @@ class SendExpirationAlerts extends Command $assets = Asset::getExpiringWarrantee($threshold); if ($assets->count() > 0) { $this->info(trans_choice('mail.assets_warrantee_alert', $assets->count(), ['count' => $assets->count(), 'threshold' => $threshold])); - Notification::send($recipients, new ExpiringAssetsNotification($assets, $threshold)); + \Notification::send($recipients, new ExpiringAssetsNotification($assets, $threshold)); } // Expiring licenses $licenses = License::getExpiringLicenses($threshold); if ($licenses->count() > 0) { $this->info(trans_choice('mail.license_expiring_alert', $licenses->count(), ['count' => $licenses->count(), 'threshold' => $threshold])); - Notification::send($recipients, new ExpiringLicenseNotification($licenses, $threshold)); + \Notification::send($recipients, new ExpiringLicenseNotification($licenses, $threshold)); } } else { if ($settings->alert_email == '') { diff --git a/app/Console/Commands/SendInventoryAlerts.php b/app/Console/Commands/SendInventoryAlerts.php index 93b04978b0..2c270ca7b4 100644 --- a/app/Console/Commands/SendInventoryAlerts.php +++ b/app/Console/Commands/SendInventoryAlerts.php @@ -52,7 +52,7 @@ class SendInventoryAlerts extends Command return new AlertRecipient($item); }); - Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold)); + \Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold)); } } else { if ($settings->alert_email == '') {