From d69c622471295e6b695173ee4472dfa2a4150786 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Fri, 11 Jul 2025 10:55:07 +0530 Subject: [PATCH] work_status filed added --- src/controllers/installationController.js | 4 ++++ 1 file changed, 4 insertions(+) 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,