|
|
@ -7413,6 +7413,7 @@ exports.getDisconnectedCustomerDetails = async (req, reply) => {
|
|
|
|
// }).lean();
|
|
|
|
// }).lean();
|
|
|
|
|
|
|
|
|
|
|
|
const disconnectedSensorsRaw = await Insensors.find({
|
|
|
|
const disconnectedSensorsRaw = await Insensors.find({
|
|
|
|
|
|
|
|
connected_status: "disconnected",
|
|
|
|
$or: [
|
|
|
|
$or: [
|
|
|
|
{ connected_to: { $in: allHardwareIds } },
|
|
|
|
{ connected_to: { $in: allHardwareIds } },
|
|
|
|
{ hardwareId: { $in: allHardwareIds } },
|
|
|
|
{ hardwareId: { $in: allHardwareIds } },
|
|
|
|