Adding fix for status 500 in device listing page

revert-70aa11f8
Ace 8 years ago
parent 80bf3c8fbd
commit b54bf3000f

@ -80,7 +80,7 @@ function onRequest(context) {
} }
var mdmProps = require("/app/modules/conf-reader/main.js")["conf"]; var mdmProps = require("/app/modules/conf-reader/main.js")["conf"];
var cUser = userModule.getUser(); var cUser = userModule.getCarbonUser();
var analiticsServer = mdmProps["dashboardServerURL"]; var analiticsServer = mdmProps["dashboardServerURL"];
var analiticsURL = analiticsServer + "/portal/t/" + cUser.userDomain + "/dashboards/android-iot/battery?owner=" + cUser.username + "&deviceId="; var analiticsURL = analiticsServer + "/portal/t/" + cUser.userDomain + "/dashboards/android-iot/battery?owner=" + cUser.username + "&deviceId=";
viewModel.analiticsURL = analiticsURL; viewModel.analiticsURL = analiticsURL;

Loading…
Cancel
Save