fix param

This commit is contained in:
Damodar Lohani
2022-07-17 10:39:44 +00:00
parent ff8e730b8a
commit dbd941f464
+1 -1
View File
@@ -289,7 +289,7 @@ App::get('/v1/functions/usage')
->param('range', '30d', new WhiteList(['24h', '7d', '30d', '90d']), 'Date range.', true)
->inject('response')
->inject('dbForProject')
->action(function (string $functionId, string $range, Response $response, Database $dbForProject) {
->action(function (string $range, Response $response, Database $dbForProject) {
$function = $dbForProject->getDocument('functions', $functionId);