master^2
Varun 7 months ago
parent dc5b3766b5
commit 2416ee8566

@ -3032,6 +3032,8 @@ exports.motorAction = async (req, reply) => {
"connections.inputConnections.$.manual_threshold_time": null,
"connections.inputConnections.$.manual_threshold_percentage": null,
"connections.inputConnections.$.stopTime": currentTime,
"connections.inputConnections.$.start_instance_id": null,
}
}
);
@ -3057,6 +3059,7 @@ exports.motorAction = async (req, reply) => {
console.log(motorData,"motorData")
if (motorData) {
console.log("got into if")
const receiverTank = await Tank.findOne({ customerId, tankName: motorData.receiverTank, tankLocation: motorData.receiver_type.toLowerCase() });
const receiverFinalWaterLevel = parseInt(receiverTank.waterlevel, 10);
console.log(receiverFinalWaterLevel,"receiverFinalWaterLevel")

Loading…
Cancel
Save