1
0
Fork 0
mirror of synced 2024-07-03 21:50:34 +12:00

Merge branch 'feat-git-integration' of github.com:appwrite/appwrite into feat-git-integration

This commit is contained in:
Khushboo Verma 2023-08-21 12:22:20 +05:30
commit efb3205830
4 changed files with 8 additions and 8 deletions

View file

@ -29,7 +29,7 @@ ENV VITE_APPWRITE_GROWTH_ENDPOINT=$VITE_APPWRITE_GROWTH_ENDPOINT
RUN npm ci
RUN npm run build
FROM appwrite/base:0.4.2 as final
FROM appwrite/base:0.4.3 as final
LABEL maintainer="team@appwrite.io"

View file

@ -178,7 +178,7 @@ class Executor
array $headers,
string $runtimeEntrypoint = null,
) {
if(empty($headers['host'])) {
if (empty($headers['host'])) {
$headers['host'] = App::getEnv('_APP_DOMAIN', '');
}

View file

@ -1368,8 +1368,7 @@ trait Base
total
deployments {
_id
buildStdout
buildStderr
buildLogs
}
}
}';
@ -1378,8 +1377,7 @@ trait Base
functionsGetDeployment(functionId: $functionId, deploymentId: $deploymentId) {
_id
buildId
buildStdout
buildStderr
buildLogs
}
}';
case self::$CREATE_FUNCTION:
@ -1392,8 +1390,8 @@ trait Base
}
}';
case self::$UPDATE_FUNCTION:
return 'mutation updateFunction($functionId: String!, $name: String!, $execute: [String!]!, $events: [String], $schedule: String, $timeout: Int) {
functionsUpdate(functionId: $functionId, name: $name, execute: $execute, events: $events, schedule: $schedule, timeout: $timeout) {
return 'mutation updateFunction($functionId: String!, $name: String!, $execute: [String!]!, $runtime: String!, $entrypoint: String!, $events: [String], $schedule: String, $timeout: Int) {
functionsUpdate(functionId: $functionId, name: $name, execute: $execute, runtime: $runtime, entrypoint: $entrypoint, events: $events, schedule: $schedule, timeout: $timeout) {
_id
name
runtime

View file

@ -382,6 +382,8 @@ class FunctionsServerTest extends Scope
'functionId' => $function['_id'],
'name' => 'Test Function Updated',
'execute' => [Role::any()->toString()],
'entrypoint' => 'index.php',
'runtime' => 'php-8.0',
'vars' => [
'name' => 'John Doe',
'age' => 42,