fix: prefs for teams
This commit is contained in:
parent
52d7dcf082
commit
34d27fb4d0
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ App::get('/v1/teams/:teamId/prefs')
|
|||
throw new Exception(Exception::TEAM_NOT_FOUND);
|
||||
}
|
||||
|
||||
$prefs = $team->getAttribute('prefs', new \stdClass());
|
||||
$prefs = $team->getAttribute('prefs', []);
|
||||
|
||||
$response->dynamic(new Document($prefs), Response::MODEL_PREFERENCES);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue