From aba3a31663d1de73e3de7f9f3f9abb1a56d4c70a Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 24 Oct 2024 19:28:20 +0200 Subject: [PATCH] fix: deployment/deploymentId --- app/controllers/general.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index 92c787f407..d5463935f9 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -167,8 +167,8 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo } $deploymentId = match($type) { - 'function' => $resource->getAttribute('deploymentId', ''), - 'site' => $resource->getAttribute('deployment', '') + 'function' => $resource->getAttribute('deployment', ''), + 'site' => $resource->getAttribute('deploymentId', '') }; $deployment = Authorization::skip(fn () => $dbForProject->getDocument('deployments', $deploymentId));