From 819c97d2ad6f6ac63549dc7f5eda1a6c7db57b68 Mon Sep 17 00:00:00 2001 From: Varun Date: Thu, 15 May 2025 12:09:59 +0530 Subject: [PATCH] changes --- src/controllers/tanksController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');