mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fixed functions webhooks trigger
This commit is contained in:
@@ -768,6 +768,7 @@ App::post('/v1/functions/:functionId/executions')
|
||||
|
||||
Resque::enqueue('v1-functions', 'FunctionsV1', [
|
||||
'projectId' => $project->getId(),
|
||||
'webhooks' => $project->getAttribute('webhooks', []),
|
||||
'functionId' => $function->getId(),
|
||||
'executionId' => $execution->getId(),
|
||||
'trigger' => 'http',
|
||||
|
||||
@@ -247,6 +247,7 @@ class FunctionsV1
|
||||
|
||||
ResqueScheduler::enqueueAt($next, 'v1-functions', 'FunctionsV1', [
|
||||
'projectId' => $projectId,
|
||||
'webhooks' => $webhooks,
|
||||
'functionId' => $function->getId(),
|
||||
'executionId' => null,
|
||||
'trigger' => 'schedule',
|
||||
@@ -285,6 +286,9 @@ class FunctionsV1
|
||||
* @param string $event
|
||||
* @param string $eventData
|
||||
* @param string $data
|
||||
* @param array $webhooks
|
||||
* @param string $userId
|
||||
* @param string $jwt
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user