Skip to content

Commit

Permalink
[feature] Add editorConnectionsCount field to info.json
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Oct 27, 2021
1 parent 78f925a commit 1ae05f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DocService/sources/DocsCoServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3318,6 3318,7 @@ exports.licenseInfo = function(req, res) {
connectionsStat: {}, licenseInfo: {}, serverInfo: {
buildVersion: commonDefines.buildVersion, buildNumber: commonDefines.buildNumber,
}, quota: {
editorConnectionsCount: 0,
uniqueUserCount: 0,
anonymousUserCount: 0,
byMonth: null
Expand Down Expand Up @@ -3384,6 3385,7 @@ exports.licenseInfo = function(req, res) {
output.quota.byMonth.sort((a, b) => {
return a.date.localeCompare(b.date);
});
output.quota.editorConnectionsCount = yield editorData.getEditorConnectionsCount(connections);
logger.debug('licenseInfo end');
} catch (err) {
isError = true;
Expand Down

0 comments on commit 1ae05f1

Please sign in to comment.