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
co-authored by Jake Barnby
parent 4b50fe3f15
commit 6cf3cdcadb
+1 -1
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', [