Merge pull request #213 from charithag/patch-1

Fix formatting
revert-70aa11f8
Ruwan 9 years ago
commit f04705dda5

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

Loading…
Cancel
Save