Fix formatting

4.x.x
Charitha Goonetilleke 9 years ago
parent d6a6a5e689
commit 05858da548

@ -38,11 +38,11 @@ if (!user) {
if (uriMatcher.match("/{context}/api/operations/{deviceType}/stats")) { if (uriMatcher.match("/{context}/api/operations/{deviceType}/stats")) {
var deviceType = uriMatcher.elements().deviceType; var deviceType = uriMatcher.elements().deviceType;
var deviceId = request.getParameter("deviceId"); var deviceId = request.getParameter("deviceId");
var monitor_operations = operationModule.getMonitorOperations(deviceType); var monitorOperations = operationModule.getMonitorOperations(deviceType);
var stats = []; var stats = [];
result = {}; result = {};
for (var op in monitor_operations) { for (var op in monitorOperations) {
result = operationModule.handleGETOperation(deviceType, monitor_operations[op].operation, monitor_operations[op].name, deviceId); result = operationModule.handleGETOperation(deviceType, monitorOperations[op].operation, monitorOperations[op].name, deviceId);
stats.push(result.data); stats.push(result.data);
} }
result.data = stats; result.data = stats;

Loading…
Cancel
Save