From 5002b0f3fa2a5042ecfdbd95d79359650a73c661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Thu, 9 May 2024 11:50:45 +0000 Subject: [PATCH] PR review changes --- app/controllers/api/functions.php | 2 +- src/Appwrite/Platform/Workers/Functions.php | 2 +- tests/resources/functions/php-scopes/index.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index be44315aa8..c4d9aa1f13 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1711,7 +1711,7 @@ App::post('/v1/functions/:functionId/executions') // Appwrite vars $vars = \array_merge($vars, [ - 'APPWRITE_FUNCTION_ENDPOINT' => $endpoint, + 'APPWRITE_FUNCTION_API_ENDPOINT' => $endpoint, 'APPWRITE_FUNCTION_ID' => $functionId, 'APPWRITE_FUNCTION_NAME' => $function->getAttribute('name'), 'APPWRITE_FUNCTION_DEPLOYMENT' => $deployment->getId(), diff --git a/src/Appwrite/Platform/Workers/Functions.php b/src/Appwrite/Platform/Workers/Functions.php index da3fbb1a62..9a1a96cf2d 100644 --- a/src/Appwrite/Platform/Workers/Functions.php +++ b/src/Appwrite/Platform/Workers/Functions.php @@ -384,7 +384,7 @@ class Functions extends Action // Appwrite vars $vars = \array_merge($vars, [ - 'APPWRITE_FUNCTION_ENDPOINT' => $endpoint, + 'APPWRITE_FUNCTION_API_ENDPOINT' => $endpoint, 'APPWRITE_FUNCTION_ID' => $functionId, 'APPWRITE_FUNCTION_NAME' => $function->getAttribute('name'), 'APPWRITE_FUNCTION_DEPLOYMENT' => $deploymentId, diff --git a/tests/resources/functions/php-scopes/index.php b/tests/resources/functions/php-scopes/index.php index d06fb7f76e..e05653b709 100644 --- a/tests/resources/functions/php-scopes/index.php +++ b/tests/resources/functions/php-scopes/index.php @@ -8,7 +8,7 @@ use Appwrite\Services\Users; return function ($context) { $client = new Client(); $client - ->setEndpoint(getenv('APPWRITE_FUNCTION_ENDPOINT')) + ->setEndpoint(getenv('APPWRITE_FUNCTION_API_ENDPOINT')) ->setProject(getenv('APPWRITE_FUNCTION_PROJECT_ID')) ->setKey($context->req->headers['x-appwrite-key']); $users = new Users($client);