From 2e26ea3a1baa71b80adc272282e95eaa8dd67f90 Mon Sep 17 00:00:00 2001 From: fogelito Date: Thu, 4 Sep 2025 14:54:22 +0300 Subject: [PATCH] $prefsDocument --- app/controllers/api/teams.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index ed2e2d2140..ae6ad686e0 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -359,7 +359,7 @@ App::put('/v1/teams/:teamId/prefs') ->inject('queueForEvents') ->action(function (string $teamId, array $prefs, Response $response, Database $dbForProject, Event $queueForEvents) { try { - $prefs = new Document($prefs); + $prefsDocument = new Document($prefs); } catch (StructureException $e) { throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $e->getMessage()); } @@ -374,7 +374,7 @@ App::put('/v1/teams/:teamId/prefs') $queueForEvents->setParam('teamId', $team->getId()); - $response->dynamic($prefs, Response::MODEL_PREFERENCES); + $response->dynamic($prefsDocument, Response::MODEL_PREFERENCES); }); App::delete('/v1/teams/:teamId')