Update app/controllers/api/functions.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
parent
10826daaa7
commit
b0096c94e6
|
@ -375,7 +375,7 @@ App::patch('/v1/functions/:functionId/deployments/:deploymentId')
|
|||
}
|
||||
|
||||
if ($deployment->isEmpty()) {
|
||||
throw new Exception('Deployment not found', Exception::DEPLOYMENT_NOT_FOUND);
|
||||
throw new Exception('Deployment not found', 404, Exception::DEPLOYMENT_NOT_FOUND);
|
||||
}
|
||||
|
||||
if ($build->isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue