diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 12e4304e..e29f5db2 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -6218,7 +6218,7 @@ async function processIotData(hw_Id, data) { if (tankHeight <= 0) { const now = moment().tz('Asia/Kolkata'); - if (existingTank.slave_status === "working" || !existingTank.slave_status) { + if (existingTank.slave_status === "working") { // First time signal is lost existingTank.slave_status = "signal_lost1"; existingTank.slave_signal_lost_time = now.format('DD-MMM-YYYY - HH:mm:ss');