|
|
@ -4449,7 +4449,7 @@ exports.getDisconnectedCustomerDetails = async (req, reply) => {
|
|
|
|
// { hardwareId: { $in: hardwareIds } },
|
|
|
|
// { hardwareId: { $in: hardwareIds } },
|
|
|
|
{ connected_to: { $in: hardwareIds } }
|
|
|
|
{ connected_to: { $in: hardwareIds } }
|
|
|
|
],
|
|
|
|
],
|
|
|
|
connected_status: "disconnected"
|
|
|
|
// connected_status: "disconnected"
|
|
|
|
}).lean();
|
|
|
|
}).lean();
|
|
|
|
|
|
|
|
|
|
|
|
if (disconnectedSensors.length === 0) {
|
|
|
|
if (disconnectedSensors.length === 0) {
|
|
|
|