Update app/controllers/api/functions.php

Co-authored-by: Jake Barnby <jakeb994@gmail.com>
This commit is contained in:
Matej Bačo
2022-08-30 09:27:54 +02:00
committed by GitHub
co-authored by Jake Barnby
parent 883207240c
commit 3e2a7e2941
+1 -1
View File
@@ -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();