diff --git a/app/Events/ServiceStatusChanged.php b/app/Events/ServiceStatusChanged.php index dc965d0a2..a86a8b02d 100644 --- a/app/Events/ServiceStatusChanged.php +++ b/app/Events/ServiceStatusChanged.php @@ -27,7 +27,7 @@ class ServiceStatusChanged implements ShouldBroadcast public function broadcastOn(): ?array { - if ($this->userId) { + if (! is_null($this->userId)) { return [ new PrivateChannel("user.{$this->userId}"), ];