Skip to content

Commit dff88b9

Browse files
committed
[server-stats] eslint fixes
1 parent b1183ae commit dff88b9

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

plugins/server-stats/api/api.js

+9-8
Original file line numberDiff line numberDiff line change
@@ -129,21 +129,21 @@ var plugins = require('../../pluginManager.js'),
129129
var params = ob.params;
130130
var periodsToFetch = [],
131131
utcMoment = common.moment.utc();
132-
132+
133133
var monthBack = parseInt(params.qstring.months) || 12;
134-
134+
135135
for (let i = monthBack - 1; i > 0; i--) {
136136
utcMoment.subtract(i, "months");
137137
periodsToFetch.push(utcMoment.format("YYYY") + ":" + utcMoment.format("M"));
138138
utcMoment.add(i, "months");
139139
}
140-
140+
141141
periodsToFetch.push(utcMoment.format("YYYY") + ":" + utcMoment.format("M"));
142-
142+
143143
var filter = {
144144
$or: []
145145
};
146-
146+
147147
ob.validateUserForMgmtReadAPI(function() {
148148
if (!params.member.global_admin) {
149149
var apps = params.member.user_of || [];
@@ -166,17 +166,18 @@ var plugins = require('../../pluginManager.js'),
166166
for (let i = 0; i < periodsToFetch.length; i++) {
167167
filter.$or.push({_id: {$regex: ".*_" + periodsToFetch[i]}});
168168
}
169-
169+
170170
fetchDatapoints(params, filter, periodsToFetch);
171171
}
172-
172+
173173
}, params);
174174

175175
return true;
176176
});
177-
177+
178178
/**
179179
* Get's datapoint data from database and outputs it to browser
180+
* @param {params} params - params object
180181
* @param {object} filter - to filter documents
181182
* @param {array} periodsToFetch - array with periods
182183
*/

plugins/server-stats/frontend/public/javascripts/countly.views.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $(document).ready(function() {
7878
var menu = '<a href="#/manage/data-points" class="item">' +
7979
'<div class="text" data-localize="server-stats.data-points"></div>' +
8080
'</a>';
81-
81+
8282
if ($('#management-submenu .help-toggle').length) {
8383
$('#management-submenu .help-toggle').before(menu);
8484
}

0 commit comments

Comments
 (0)