fix: service status changed event

This commit is contained in:
Andras Bacsai 2024-07-12 11:27:08 +02:00
parent aaee887d3e
commit 21825876fb

View File

@ -27,7 +27,7 @@ class ServiceStatusChanged implements ShouldBroadcast
public function broadcastOn(): ?array public function broadcastOn(): ?array
{ {
if ($this->userId) { if (! is_null($this->userId)) {
return [ return [
new PrivateChannel("user.{$this->userId}"), new PrivateChannel("user.{$this->userId}"),
]; ];