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:29:30 +02:00
committed by GitHub
co-authored by Jake Barnby
parent 471cac8187
commit 677121edca
+1 -1
View File
@@ -1472,7 +1472,7 @@ App::put('/v1/functions/:functionId/variables/:variableId')
]);
if ($variable === false || $variable->isEmpty()) {
throw new Exception(Exception::VARIABLE_NOT_FOUND, 'Variable not found');
throw new Exception(Exception::VARIABLE_NOT_FOUND);
}
$variable