|
|
@ -5583,7 +5583,7 @@ exports.getDisconnectedCustomerDetails = async (req, reply) => {
|
|
|
|
|
|
|
|
|
|
|
|
const activeSensors = await Insensors.find({
|
|
|
|
const activeSensors = await Insensors.find({
|
|
|
|
customerId: { $in: disconnectedCustomerIds },
|
|
|
|
customerId: { $in: disconnectedCustomerIds },
|
|
|
|
support_issue_status: "inactive"
|
|
|
|
support_issue_status: "active"
|
|
|
|
}).lean();
|
|
|
|
}).lean();
|
|
|
|
|
|
|
|
|
|
|
|
const activeCustomerIds = new Set(activeSensors.map(s => s.customerId));
|
|
|
|
const activeCustomerIds = new Set(activeSensors.map(s => s.customerId));
|
|
|
|