|
|
|
@ -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
|
|
|
|
|