mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
Add comment for clarity
This commit is contained in:
parent
94e7669b41
commit
d3c2e9db1f
1 changed files with 2 additions and 0 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue