1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +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:28:20 +02:00 committed by GitHub
parent 4b50fe3f15
commit 6cf3cdcadb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1510,7 +1510,7 @@ App::delete('/v1/functions/:functionId/variables/:variableId')
$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);
}
$variable = $dbForProject->findOne('variables', [