fix: deployment/deploymentId

This commit is contained in:
Torsten Dittmann 2024-10-24 19:28:20 +02:00
parent 8950f71b0a
commit aba3a31663

View file

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