From 871f179370f2ee5e4a99c2605d64b46d0f68ecca Mon Sep 17 00:00:00 2001 From: Louis Jeckel Date: Mon, 7 Sep 2020 09:33:33 +0200 Subject: [PATCH] Update DispatchMailgunEvent.php --- app/Events/DispatchMailgunEvent.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Events/DispatchMailgunEvent.php b/app/Events/DispatchMailgunEvent.php index 1352388..8617708 100644 --- a/app/Events/DispatchMailgunEvent.php +++ b/app/Events/DispatchMailgunEvent.php @@ -38,7 +38,6 @@ class DispatchMailgunEvent implements ShouldBroadcast { $tags = Arr::get($webhookData, 'event-data.tags'); - \Log::info('mailgun event'); /** @todo check webhook key */ @@ -55,6 +54,9 @@ class DispatchMailgunEvent implements ShouldBroadcast $this->broadcast = in_array(config('app.env'), $tags, true) && ($event->wasRecentlyCreated); + \Log::info("broadcast : $this->broadcast"); + + $event->touch(); $this->data = $event; -- 2.39.5