Fixed functions webhooks trigger

This commit is contained in:
Eldad Fux
2021-05-17 18:52:22 +03:00
parent a8cc398c85
commit 63a92a768a
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -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',
+4
View File
@@ -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
*/