From 177042fc53f0139500e1c0e56eed1e38405639ab Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Mon, 14 Apr 2025 12:44:22 +0530 Subject: [PATCH] changes --- src/controllers/installationController.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controllers/installationController.js b/src/controllers/installationController.js index 375c5a1c..80c21db6 100644 --- a/src/controllers/installationController.js +++ b/src/controllers/installationController.js @@ -1192,9 +1192,12 @@ exports.getIotDataByCustomer = async (req, reply) => { return { hardwareId, message, - gsmDate: latestRecord?.date, + // gsmDate: latestRecord?.date, + masterName: relatedSensors[0]?.masterName ?? null, + location: relatedSensors[0]?.location ?? null, tanks: tanksStatus }; + }); const iotDataGrouped = await Promise.all(latestDataPromises);