Add comment for clarity

This commit is contained in:
Khushboo Verma 2024-05-30 22:33:37 +05:30
parent 94e7669b41
commit d3c2e9db1f

View file

@ -1470,6 +1470,8 @@ App::post('/v1/functions/:functionId/deployments/:deploymentId/build')
throw new Exception(Exception::DEPLOYMENT_NOT_FOUND);
}
// buildId is added as param just for backward compatibility
// It is fetched from the deployments collection and not from the request as the user doesn't have to know the buildId
$buildId = $deployment->getAttribute('buildId', '');
$build = Authorization::skip(fn () => $dbForProject->getDocument('builds', $buildId));