]> _ Git - psq.git/commitdiff
unsub
authorLouis Jeckel <louis.jeckel@outlook.com>
Wed, 6 Jan 2021 14:09:26 +0000 (15:09 +0100)
committerLouis Jeckel <louis.jeckel@outlook.com>
Wed, 6 Jan 2021 14:09:26 +0000 (15:09 +0100)
app/Events/DispatchMailgunEvent.php

index 76dc220f0365e51e19329f99cc185c787905627b..2cfdca6d950f1cbbdf4b4fb7cf603346c85e7c45 100644 (file)
@@ -74,7 +74,7 @@ class DispatchMailgunEvent implements ShouldBroadcast
         $this->data = $event;
 
         if($event->event === 'unsubscribed') {
-            $event->recipient->unsubscribe();
+            $event->recipient()->first()->unsubscribe();
         }