1
0
Fork 0
mirror of synced 2024-10-01 17:58:02 +13:00

fix: prefs for teams

This commit is contained in:
Torsten Dittmann 2023-04-12 18:03:08 +02:00
parent 52d7dcf082
commit 34d27fb4d0

View file

@ -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);
});