mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
rector: arrrrr
This commit is contained in:
1 parent
c702ebff6d
commit
16c0cd10d8
349 files changed
+4204
-3712
No files matched your search
@@ -22,11 +22,11 @@ class SwitchTeam extends Component
|
||||
public function switch_to($team_id)
|
||||
{
|
||||
if (! auth()->user()->teams->contains($team_id)) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
$team_to_switch_to = Team::find($team_id);
|
||||
$team_to_switch_to = Team::query()->find($team_id);
|
||||
if (! $team_to_switch_to) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
refreshSession($team_to_switch_to);
|
||||
|
||||
|
||||
Reference in new issue
Block a user