Skip to content

Commit

Permalink
Merge pull request #173 from laravel-enso/feature/tasks
Browse files Browse the repository at this point in the history
adds task channel
  • Loading branch information
aocneanu committed Oct 30, 2020
2 parents 186ed57 + 451e5ae commit 84e448d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/Http/Responses/AppState.php
Expand Up @@ -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(),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 84e448d

Please sign in to comment.