getmasterConnectedSlaveData product_status maintain

master^2
Bhaskar 5 months ago
parent a2d5fbd21d
commit 8748596b81

@ -1772,6 +1772,7 @@ exports.masterConnectedSlaveList = async (req, reply) => {
...master,
isMaster: true,
tankLocation: tankDetails?.tankLocation || null,
product_status: master.product_status || 'pending',
typeOfWater: masterTypeOfWater,
tankHeight: null,
masterName: masterOrderInfo.masterName,
@ -1896,6 +1897,7 @@ return {
...slave,
isMaster: false,
hardwareId: finalHardwareId,
product_status: slave.product_status || 'pending',
tankHeight: matchingTankData?.tankHeight ?? null,
typeOfWater: masterTypeOfWater === 'bore' ? 'bore' : (slave.typeOfWater || null),
height: slaveTankMeta?.height || null,

Loading…
Cancel
Save