Merge pull request #6109 from appwrite/fix-1.4-bugs
Fix events not triggering functions and path not a string bugs
This commit is contained in:
commit
f47aa91ff1
2 changed files with 2 additions and 1 deletions
|
@ -1498,7 +1498,7 @@ App::post('/v1/functions/:functionId/executions')
|
||||||
->param('functionId', '', new UID(), 'Function ID.')
|
->param('functionId', '', new UID(), 'Function ID.')
|
||||||
->param('body', '', new Text(8192, 0), 'HTTP body of execution. Default value is empty string.', true)
|
->param('body', '', new Text(8192, 0), 'HTTP body of execution. Default value is empty string.', true)
|
||||||
->param('async', false, new Boolean(), 'Execute code in the background. Default value is false.', true)
|
->param('async', false, new Boolean(), 'Execute code in the background. Default value is false.', true)
|
||||||
->param('path', '/', new Text(2048), 'HTTP path of execution. Path can include query params. Default value is /', true)
|
->param('path', '/', new Text(2048, 0), 'HTTP path of execution. Path can include query params. Default value is /', true)
|
||||||
->param('method', 'POST', new Whitelist(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], true), 'HTTP method of execution. Default value is GET.', true)
|
->param('method', 'POST', new Whitelist(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], true), 'HTTP method of execution. Default value is GET.', true)
|
||||||
->param('headers', [], new Assoc(), 'HTTP headers of execution. Defaults to empty.', true)
|
->param('headers', [], new Assoc(), 'HTTP headers of execution. Defaults to empty.', true)
|
||||||
->inject('response')
|
->inject('response')
|
||||||
|
|
|
@ -335,6 +335,7 @@ $server->job()
|
||||||
}
|
}
|
||||||
Console::success('Iterating function: ' . $function->getAttribute('name'));
|
Console::success('Iterating function: ' . $function->getAttribute('name'));
|
||||||
$execute(
|
$execute(
|
||||||
|
log: $log,
|
||||||
statsd: $statsd,
|
statsd: $statsd,
|
||||||
dbForProject: $dbForProject,
|
dbForProject: $dbForProject,
|
||||||
project: $project,
|
project: $project,
|
||||||
|
|
Loading…
Reference in a new issue