diff --git a/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.operation/operation.js b/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.operation/operation.js index d438f00cbb..47e5aff43d 100644 --- a/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.operation/operation.js +++ b/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.operation/operation.js @@ -1,6 +1,5 @@ function onRequest(context) { - var log = new Log("iot-operation.js"); - var operationModule = require("/modules/operation.js").operationModule; + var operationModule = require("/app/modules/operation.js").operationModule; var device = context.unit.params.device; var control_operations = operationModule.getControlOperations(device.type); return {"control_operations": control_operations, "device": device};