From 372c8e37b9e411a49f1ca26457fe4487e98b32f7 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 24 Apr 2017 08:03:35 +0100 Subject: [PATCH] Fixes #2409 --- .../SendIncidentUpdateEmailNotificationHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Bus/Handlers/Events/IncidentUpdate/SendIncidentUpdateEmailNotificationHandler.php b/app/Bus/Handlers/Events/IncidentUpdate/SendIncidentUpdateEmailNotificationHandler.php index 86ed8147..7b392200 100644 --- a/app/Bus/Handlers/Events/IncidentUpdate/SendIncidentUpdateEmailNotificationHandler.php +++ b/app/Bus/Handlers/Events/IncidentUpdate/SendIncidentUpdateEmailNotificationHandler.php @@ -73,8 +73,8 @@ class SendIncidentUpdateEmailNotificationHandler ->get() ->reject(function ($subscriber) use ($notified) { return in_array($subscriber->id, $notified); - })->each(function ($subscriber) use ($incident) { - $subscriber->notify(new IncidentUpdatedNotification($incident)); + })->each(function ($subscriber) use ($update) { + $subscriber->notify(new IncidentUpdatedNotification($update)); }); } }