mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update app/controllers/api/functions.php
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
This commit is contained in:
co-authored by
Jake Barnby
parent
4b50fe3f15
commit
6cf3cdcadb
@@ -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', [
|
||||
|
||||
Reference in New Issue
Block a user