diff --git a/app/controllers/general.php b/app/controllers/general.php index 62cc3b9001..88ece71e8a 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -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));