master^2
Bhaskar 4 months ago
parent 889aae3965
commit 3e06fb2462

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

Loading…
Cancel
Save