From b384ced685d74380a55297439cec6800a3d25dc8 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Mon, 19 May 2025 17:57:42 +0530 Subject: [PATCH] changes --- src/controllers/installationController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/installationController.js b/src/controllers/installationController.js index cc03c824..9947bdf7 100644 --- a/src/controllers/installationController.js +++ b/src/controllers/installationController.js @@ -1793,7 +1793,7 @@ exports.getMasterSlaveSummary = async (req, reply) => { const diffInMinutes = now.diff(indiaTime, "minutes"); gsmStatus = diffInMinutes <= 1 ? "connected" : "disconnected"; - gsmLastCheckTime = now.format("DD-MM-YYYY HH:mm:ss"); + gsmLastCheckTime =master.gsm_last_check_time; if (gsmStatus === "disconnected") { // Update disconnect time with latest disconnect timestamp @@ -1827,7 +1827,7 @@ exports.getMasterSlaveSummary = async (req, reply) => { let connectedLoraTime = null; let loraStatus = "disconnected"; let loraLastDisconnect = slave.lora_last_disconnect_time || null; - let loraLastCheckTime = now.format("DD-MM-YYYY HH:mm:ss"); + let loraLastCheckTime = slave.lora_last_check_time; let tankHeight = null; // Fetch latest IotData for slave's hardwareId (NOT master's)