resolved issues shown

master^2
Bhaskar 4 months ago
parent 91963ac612
commit 9f9a2f9a98

@ -7481,7 +7481,10 @@ exports.particularCategory = async (req, reply) => {
const disconnectedIssues = []; 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({ const slaves = await Insensors.find({
connected_to: master.hardwareId, connected_to: master.hardwareId,
customerId customerId

Loading…
Cancel
Save