From c31055f144d78f713edcb67e5d9bf5faaa725410 Mon Sep 17 00:00:00 2001 From: Shimon Newman Date: Wed, 1 Jun 2022 12:55:35 +0300 Subject: [PATCH] Update app/controllers/api/projects.php Co-authored-by: Torsten Dittmann --- app/controllers/api/projects.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 8145cab3e2..fd562c2003 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -776,7 +776,7 @@ App::post('/v1/projects/:projectId/keys') ->param('projectId', null, new UID(), 'Project unique ID.') ->param('name', null, new Text(128), 'Key name. Max length: 128 chars.') ->param('scopes', null, new ArrayList(new WhiteList(array_keys(Config::getParam('scopes')), true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Key scopes list. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' scopes are allowed.') - ->param('expire', 0, new Integer() , 'Key expiration time') + ->param('expire', 0, new Integer(), 'Key expiration time') ->inject('response') ->inject('dbForConsole') ->action(function (string $projectId, string $name, array $scopes, int $expire, Response $response, Database $dbForConsole) {