This commit is contained in:
Ajay Ramachandran
2020-08-30 11:18:05 -04:00
2 changed files with 2 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ module.exports = function getTotalStats (req, res) {
function updateExtensionUsers() {
if (config.userCounterURL) {
request.get(config.userCounterURL + "/api/v1/userCount", (err, response, body) => {
apiUsersCache = JSON.parse(body).userCount;
apiUsersCache = Math.max(apiUsersCache, JSON.parse(body).userCount);
});
}