feat: fix throw
This commit is contained in:
parent
5958bdd2dc
commit
4d015cb6f5
1 changed files with 0 additions and 1 deletions
|
@ -999,7 +999,6 @@ App::get('/v1/functions/:functionId/executions')
|
|||
|
||||
$function = Authorization::skip(fn() => $dbForProject->getDocument('functions', $functionId));
|
||||
|
||||
throw new Exception('Function not found', 404, Exception::FUNCTION_NOT_FOUND);
|
||||
if ($function->isEmpty()) {
|
||||
throw new Exception('Function not found', 404, Exception::FUNCTION_NOT_FOUND);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue