1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

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
parent 883207240c
commit 3e2a7e2941
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();