1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Add search attribute to redeploy endpoint

This commit is contained in:
Khushboo Verma 2023-08-20 15:13:05 +05:30
parent 46c7010908
commit afbadf9322

View file

@ -1299,12 +1299,15 @@ App::post('/v1/functions/:functionId/deployments/:deploymentId/builds/:buildId')
throw new Exception(Exception::BUILD_NOT_FOUND);
}
$deploymentId = ID::unique();
$deployment = $dbForProject->createDocument('deployments', $deployment->setAttributes([
'$id' => ID::unique(),
'$id' => $deploymentId,
'buildId' => '',
'buildInternalId' => '',
'entrypoint' => $function->getAttribute('entrypoint'),
'commands' => $function->getAttribute('commands', ''),
'search' => implode(' ', [$deploymentId, $function->getAttribute('entrypoint')]),
]));
$buildEvent = new Build();