From 21825876fbd798048e9904c3a9a4f01f35cb1cec Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 12 Jul 2024 11:27:08 +0200 Subject: [PATCH] fix: service status changed event --- app/Events/ServiceStatusChanged.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ public function __construct($userId = null) public function broadcastOn(): ?array { - if ($this->userId) { + if (! is_null($this->userId)) { return [ new PrivateChannel("user.{$this->userId}"), ];