|
|
|
@ -626,10 +626,10 @@ exports.assignTeamMemberToQuotation = async (request, reply) => {
|
|
|
|
|
// Step 4: Check tank connection status
|
|
|
|
|
const tanksWithStatus = latestRecord.tanks.map(tank => {
|
|
|
|
|
const height = parseFloat(tank.tankHeight || "0");
|
|
|
|
|
const connectionStatus = height > 0 ? "GSM Connected" : "GSM Not Connected";
|
|
|
|
|
// const connectionStatus = height > 0 ? "GSM Connected" : "GSM Not Connected";
|
|
|
|
|
return {
|
|
|
|
|
...tank,
|
|
|
|
|
connectionStatus
|
|
|
|
|
// connectionStatus
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|