From 3bbd0fdbcddcf0968c6ea82bf5820a0ada14ee25 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Wed, 9 Jul 2025 17:02:51 -0700 Subject: [PATCH] google notifications fires properly --- app/Listeners/CheckoutableListener.php | 2 +- app/Notifications/CheckinComponentNotification.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Listeners/CheckoutableListener.php b/app/Listeners/CheckoutableListener.php index a00cfd00d7..a149bc05a3 100644 --- a/app/Listeners/CheckoutableListener.php +++ b/app/Listeners/CheckoutableListener.php @@ -27,6 +27,7 @@ use App\Notifications\CheckinLicenseSeatNotification; use App\Notifications\CheckoutAccessoryNotification; use App\Notifications\CheckoutAssetNotification; use App\Notifications\CheckoutComponentNotification; +use App\Notifications\CheckoutComponentsNotification; use App\Notifications\CheckoutConsumableNotification; use App\Notifications\CheckoutLicenseSeatNotification; use GuzzleHttp\Exception\ClientException; @@ -147,7 +148,6 @@ class CheckoutableListener $shouldSendEmailToUser = $this->checkoutableCategoryShouldSendEmail($event->checkoutable); $shouldSendEmailToAlertAddress = $this->shouldSendEmailToAlertAddress(); $shouldSendWebhookNotification = $this->shouldSendWebhookNotification(); - if (!$shouldSendEmailToUser && !$shouldSendEmailToAlertAddress && !$shouldSendWebhookNotification) { return; } diff --git a/app/Notifications/CheckinComponentNotification.php b/app/Notifications/CheckinComponentNotification.php index 457f1b5896..4057c26812 100644 --- a/app/Notifications/CheckinComponentNotification.php +++ b/app/Notifications/CheckinComponentNotification.php @@ -154,7 +154,7 @@ class CheckinComponentNotification extends Notification KeyValue::create( trans('mail.checkedin_from') ?: '', $target->present()->fullName() ?: '', - trans('admin/consumables/general.remaining').': '.$item->availCount()->count(), + trans('admin/consumables/general.remaining').': '.$item->numRemaining(), ) ->onClick(route('components.show', $item->id)) )