From fe55d3a882ff4556140113310814517344980fca Mon Sep 17 00:00:00 2001 From: Varun Date: Thu, 15 May 2025 11:46:29 +0530 Subject: [PATCH] changes --- src/controllers/tanksController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index cd03507e..12e4304e 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -6220,13 +6220,13 @@ async function processIotData(hw_Id, data) { if (existingTank.slave_status === "working" || !existingTank.slave_status) { // First time signal is lost - existingTank.slave_status = "signal_lost"; + existingTank.slave_status = "signal_lost1"; existingTank.slave_signal_lost_time = now.format('DD-MMM-YYYY - HH:mm:ss'); await existingTank.save(); console.log(`⚠️ Signal lost for tank [${tankhardwareId}] at ${existingTank.slave_signal_lost_time}`); - } else if (existingTank.slave_status === "signal_lost") { + } else if (existingTank.slave_status === "signal_lost1") { const lostTime = moment(existingTank.slave_signal_lost_time, 'DD-MMM-YYYY - HH:mm:ss'); const minutesElapsed = now.diff(lostTime, 'minutes');