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