Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
This commit is contained in:
parent
4b50fe3f15
commit
6cf3cdcadb
|
@ -1510,7 +1510,7 @@ App::delete('/v1/functions/:functionId/variables/:variableId')
|
|||
$function = $dbForProject->getDocument('functions', $functionId);
|
||||
|
||||
if ($function->isEmpty()) {
|
||||
throw new Exception(Exception::FUNCTION_NOT_FOUND, 'Function not found');
|
||||
throw new Exception(Exception::FUNCTION_NOT_FOUND);
|
||||
}
|
||||
|
||||
$variable = $dbForProject->findOne('variables', [
|
||||
|
|
Loading…
Reference in a new issue