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