diff --git a/src/controllers/installationController.js b/src/controllers/installationController.js index b8f79769..190a0587 100644 --- a/src/controllers/installationController.js +++ b/src/controllers/installationController.js @@ -2872,6 +2872,7 @@ exports.getMasterSlaveSummary = async (req, reply) => { hardwareId: master.hardwareId, masterName, location, + work_status: orderInfo.work_status || null, type: master.type || "master", connected_status: gsmStatus, connected_slave_count: connectedSlaves.length, @@ -3070,6 +3071,7 @@ exports.getWaitingMasterSlaveSummary = async (req, reply) => { hardwareId: master.hardwareId, masterName, location, + work_status: orderInfo.work_status, type: master.type || "master", connected_status: gsmStatus, connected_slave_count: connectedSlaves.length, @@ -3268,6 +3270,7 @@ exports.getCompleteMasterSlaveSummary = async (req, reply) => { hardwareId: master.hardwareId, masterName, location, + work_status: orderInfo.work_status, type: master.type || "master", connected_status: gsmStatus, connected_slave_count: connectedSlaves.length, @@ -3606,6 +3609,7 @@ exports.getPendingMasterSlaveSummary = async (req, reply) => { hardwareId: master.hardwareId, masterName, location, + work_status: orderInfo.work_status || null, type: master.type || "master", connected_status: gsmStatus, connected_slave_count: connectedSlaves.length,