From 4dc0254e62f815108397f034170e75c5b45f587f Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 10 Jun 2025 10:58:56 +0200 Subject: [PATCH] refactor(events): update ProxyStatusChangedUI constructor to accept nullable teamId for improved flexibility --- app/Events/ProxyStatusChangedUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Events/ProxyStatusChangedUI.php b/app/Events/ProxyStatusChangedUI.php index d281972bc..bd99a0f3c 100644 --- a/app/Events/ProxyStatusChangedUI.php +++ b/app/Events/ProxyStatusChangedUI.php @@ -14,7 +14,7 @@ class ProxyStatusChangedUI implements ShouldBroadcast public ?int $teamId = null; - public function __construct(int $teamId) + public function __construct(?int $teamId = null) { if (is_null($teamId) && auth()->check() && auth()->user()->currentTeam()) { $teamId = auth()->user()->currentTeam()->id;