chore: add todo comment

This commit is contained in:
Torsten Dittmann 2024-10-24 12:19:10 +02:00
parent 3af34f078c
commit 83b5aecbfd

View file

@ -167,6 +167,7 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo
throw new AppwriteException(AppwriteException::FUNCTION_RUNTIME_UNSUPPORTED, 'Runtime "' . $function->getAttribute('runtime', '') . '" is not supported');
}
}
//todo: find a better approach
$deploymentId = $isSite ? $function->getAttribute('deploymentId', '') : $function->getAttribute('deployment', '');
$deployment = Authorization::skip(fn () => $dbForProject->getDocument('deployments', $deploymentId));