location added from connected master and slaves

master^2
Bhaskar 4 months ago
parent 915998b11d
commit e262650680

@ -1494,7 +1494,10 @@ exports.masterConnectedSlaveList = async (req, reply) => {
if (match) { if (match) {
masterOrderInfo = { masterOrderInfo = {
masterName: match.master_name || "", masterName: match.master_name || "",
location: match.location || "" location: match.location || "",
googleLocation: match.googleLocation || "",
longitude : match.longitude || "",
latitude: match.latitude || ""
}; };
} }
} }
@ -1508,6 +1511,9 @@ exports.masterConnectedSlaveList = async (req, reply) => {
tankHeight: null, tankHeight: null,
masterName: masterOrderInfo.masterName, masterName: masterOrderInfo.masterName,
location: masterOrderInfo.location, location: masterOrderInfo.location,
googleLocation: masterOrderInfo.googleLocation,
longitude: masterOrderInfo.longitude,
latitude: masterOrderInfo.latitude,
height: tankDetails?.height || null, height: tankDetails?.height || null,
length: tankDetails?.length || null, length: tankDetails?.length || null,
width: tankDetails?.width || null width: tankDetails?.width || null

Loading…
Cancel
Save