Fix missing params from redeploy event
This commit is contained in:
parent
4285d99f08
commit
07c985ebc3
1 changed files with 6 additions and 1 deletions
|
@ -1273,7 +1273,8 @@ App::post('/v1/functions/:functionId/deployments/:deploymentId/builds/:buildId')
|
||||||
->inject('dbForConsole')
|
->inject('dbForConsole')
|
||||||
->inject('project')
|
->inject('project')
|
||||||
->inject('gitHub')
|
->inject('gitHub')
|
||||||
->action(function (string $functionId, string $deploymentId, string $buildId, Request $request, Response $response, Database $dbForProject, Database $dbForConsole, Document $project, GitHub $github) use ($redeployVcs) {
|
->inject('events')
|
||||||
|
->action(function (string $functionId, string $deploymentId, string $buildId, Request $request, Response $response, Database $dbForProject, Database $dbForConsole, Document $project, GitHub $github, Event $events) use ($redeployVcs) {
|
||||||
|
|
||||||
$function = $dbForProject->getDocument('functions', $functionId);
|
$function = $dbForProject->getDocument('functions', $functionId);
|
||||||
$deployment = $dbForProject->getDocument('deployments', $deploymentId);
|
$deployment = $dbForProject->getDocument('deployments', $deploymentId);
|
||||||
|
@ -1298,6 +1299,10 @@ App::post('/v1/functions/:functionId/deployments/:deploymentId/builds/:buildId')
|
||||||
|
|
||||||
$redeployVcs($request, $function, $project, $installation, $dbForProject, new Document([]), $github);
|
$redeployVcs($request, $function, $project, $installation, $dbForProject, new Document([]), $github);
|
||||||
|
|
||||||
|
$events
|
||||||
|
->setParam('functionId', $function->getId())
|
||||||
|
->setParam('deploymentId', $deployment->getId());
|
||||||
|
|
||||||
$response->noContent();
|
$response->noContent();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue