diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 7f07c7ec4d..7e2b650c6a 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -715,7 +715,7 @@ Http::get('/v1/account/sessions/:sessionId') ], contentType: ContentType::JSON )) - ->param('sessionId', 'current', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Session ID. Use the string \'current\' to get the current device session. Defaults to \'current\'.', true, ['dbForProject']) + ->param('sessionId', 'current', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Session ID. Use the string \'current\' to get the current device session.', true, ['dbForProject']) ->inject('response') ->inject('user') ->inject('locale') @@ -769,7 +769,7 @@ Http::delete('/v1/account/sessions/:sessionId') contentType: ContentType::NONE )) ->label('abuse-limit', 100) - ->param('sessionId', 'current', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Session ID. Use the string \'current\' to delete the current device session. Defaults to \'current\'.', true, ['dbForProject']) + ->param('sessionId', 'current', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Session ID. Use the string \'current\' to delete the current device session.', true, ['dbForProject']) ->inject('requestTimestamp') ->inject('request') ->inject('response') @@ -860,7 +860,7 @@ Http::patch('/v1/account/sessions/:sessionId') contentType: ContentType::JSON )) ->label('abuse-limit', 10) - ->param('sessionId', 'current', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Session ID. Use the string \'current\' to update the current device session. Defaults to \'current\'.', true, ['dbForProject']) + ->param('sessionId', 'current', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Session ID. Use the string \'current\' to update the current device session.', true, ['dbForProject']) ->inject('response') ->inject('user') ->inject('dbForProject')