diff --git a/app/Services/NotificationService.php b/app/Services/NotificationService.php index b98bd0642..0ae6192f9 100644 --- a/app/Services/NotificationService.php +++ b/app/Services/NotificationService.php @@ -57,8 +57,8 @@ class NotificationService { return; } - if (class_exists($this->types[$notification->event]::class)) { - $user->notify(new $this->types[$notification->type]($notification->event)); + if (class_exists($this->types[$notification->type]::class)) { + $user->notify(new $this->types[$notification->type]($notification->payload)); } } }