1
0
Fork 0
mirror of synced 2024-07-03 05:31:38 +12:00

PR review changes

This commit is contained in:
Matej Bačo 2024-05-09 11:50:45 +00:00
parent 9252b66493
commit 5002b0f3fa
3 changed files with 3 additions and 3 deletions

View file

@ -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(),

View file

@ -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,

View file

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