diff --git a/composer.json b/composer.json index 14993cbe..21d7c6c3 100644 --- a/composer.json +++ b/composer.json @@ -61,6 +61,7 @@ "laravel-enso/roles": "^4.0", "laravel-enso/searchable": "^2.0", "laravel-enso/select": "^4.0", + "laravel-enso/tasks": "^1.0", "laravel-enso/teams": "^3.0", "laravel-enso/track-who": "^2.0", "laravel-enso/tables": "^4.0", diff --git a/src/Http/Responses/AppState.php b/src/Http/Responses/AppState.php index 96ec7b5c..68ee19c0 100644 --- a/src/Http/Responses/AppState.php +++ b/src/Http/Responses/AppState.php @@ -57,6 +57,7 @@ protected function response(): array 'privateChannel' => $this->privateChannel(), 'ioChannel' => $this->ioChannel(), 'appUpdates' => 'app-updates', + 'taskChannel' => 'tasks.'.Auth::user()->id, ], ], 'meta' => $this->meta(), @@ -135,7 +136,7 @@ protected function ioChannel(): string return in_array(Auth::user()->role_id, [$roles::Admin, $roles::Supervisor]) ? 'operations' - : 'operations'.Auth::user()->id; + : 'operations.'.Auth::user()->id; } protected function prepare(): void