master^2
Bhaskar 5 months ago
parent 9b19ac6f30
commit 3440a62ce0

@ -2758,10 +2758,10 @@ exports.getDisconnectedCustomerDetails = async (req, reply) => {
const user = customers.find(u => u.customerId === sensor.customerId);
return {
hardwareId: sensor.hardwareId,
masterName: sensor.masterName,
location: sensor.location,
disconnectedAt: sensor.disconnectedAt || new Date().toISOString(),
// hardwareId: sensor.hardwareId,
// masterName: sensor.masterName,
// location: sensor.location,
// disconnectedAt: sensor.disconnectedAt || new Date().toISOString(),
customer: user ? {
customerId: user.customerId,
username: user.username || "",
@ -2800,7 +2800,7 @@ exports.getDisconnectedCustomerDetails = async (req, reply) => {
return reply.send({
status_code: 200,
disconnectedIssues: response
data: response
});
} catch (error) {

Loading…
Cancel
Save