From 9f9a2f9a987ec3ffc183e579a04f713ba2ff7cdd Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Thu, 5 Jun 2025 12:15:47 +0530 Subject: [PATCH] resolved issues shown --- 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 e2cb0ed4..427bd050 100644 --- a/src/controllers/installationController.js +++ b/src/controllers/installationController.js @@ -7481,7 +7481,10 @@ exports.particularCategory = async (req, reply) => { const disconnectedIssues = []; - for (const master of allRelatedSensors.filter(i => i.type === "master")) { + // for (const master of allRelatedSensors.filter(i => i.type === "master")) { + const allMasters = allRelatedSensors.filter(i => i.type === "master"); + + for (const master of allMasters) { const slaves = await Insensors.find({ connected_to: master.hardwareId, customerId