Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
This commit is contained in:
parent
883207240c
commit
3e2a7e2941
1 changed files with 1 additions and 1 deletions
|
@ -1319,7 +1319,7 @@ App::post('/v1/functions/:functionId/variables')
|
|||
$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);
|
||||
}
|
||||
|
||||
$variableId = ID::unique();
|
||||
|
|
Loading…
Reference in a new issue