From b576a853dfee5f72ac5ddc04f6c7fa96b917146c Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Tue, 15 Apr 2025 14:22:53 +0530 Subject: [PATCH] chnages --- 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 df0ad042..651d7edd 100644 --- a/src/controllers/installationController.js +++ b/src/controllers/installationController.js @@ -1213,6 +1213,8 @@ exports.getIotDataByCustomer = async (req, reply) => { return { tankhardwareId, + tankName: sensor.tankName ?? null, + tankLocation: sensor.tankLocation ?? null, masterName: sensor.masterName ?? null, location: sensor.location ?? null, loraMessage, @@ -1223,12 +1225,10 @@ exports.getIotDataByCustomer = async (req, reply) => { return { hardwareId, message, - // gsmDate: latestRecord?.date, masterName: relatedSensors[0]?.masterName ?? null, location: relatedSensors[0]?.location ?? null, tanks: tanksStatus }; - }); const iotDataGrouped = await Promise.all(latestDataPromises);