From 83b5aecbfde4e9225daf76a22f2991b56e6f71b9 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 24 Oct 2024 12:19:10 +0200 Subject: [PATCH] chore: add todo comment --- app/controllers/general.php | 1 + 1 file changed, 1 insertion(+) 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));