master^2
Bhaskar 6 months ago
parent 9299fd3389
commit 51b7bef0d7

@ -5202,7 +5202,8 @@ exports.getDisconnectedIssuesBySupportId = async (req, reply) => {
const connectedSlaves = await Insensors.find({
connected_to: masterSensor.hardwareId,
type: "slave",
customerId
customerId,
connected_status: "disconnected"
}).lean();
const slaveSet = new Set(master.connected_slaves.map(s => s.hardwareId));

Loading…
Cancel
Save