Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
This commit is contained in:
parent
8620b1f3a0
commit
ce334b9518
|
@ -1432,7 +1432,7 @@ App::get('/v1/functions/:functionId/variables/:variableId')
|
|||
]);
|
||||
|
||||
if ($variable === false || $variable->isEmpty()) {
|
||||
throw new Exception(Exception::VARIABLE_NOT_FOUND, 'Variable not found');
|
||||
throw new Exception(Exception::VARIABLE_NOT_FOUND);
|
||||
}
|
||||
|
||||
$response->dynamic($variable, Response::MODEL_VARIABLE);
|
||||
|
|
Loading…
Reference in a new issue