ashok 6 months ago
commit fd81fcbac8

@ -8781,7 +8781,8 @@ exports.particularCategory = async (req, reply) => {
outDoor_status: master.outDoor_status, outDoor_status: master.outDoor_status,
movedAt: category !== "Resolved" ? (issue?.movedAt || null) : null, movedAt: category !== "Resolved" ? (issue?.movedAt || null) : null,
resolvedAt: category === "Resolved" ? (issue?.resolvedAt || null) : null, resolvedAt: category === "Resolved" ? (issue?.resolvedAt || null) : null,
category: issue?.category || category category: issue?.category || category,
hardwareList: master.hardwareList || {}
}); });
} }

@ -586,7 +586,7 @@ const insensorsSchema = new mongoose.Schema({
tankName: { type: String, default: "0" }, tankName: { type: String, default: "0" },
tankLocation: { type: String, default: "0" }, tankLocation: { type: String, default: "0" },
connected_slave: { type: String, default: null }, connected_slave: { type: String, default: null },
connected_status: { type: String, enum: ["connected", "Not connected", "unknown"], default: "unknown" }, connected_status: { type: String, enum: ["connected", "disconnected", "Not connected", "unknown"], default: "unknown" },
masterName: { type: String, default: null }, masterName: { type: String, default: null },
location: { type: String, default: null }, location: { type: String, default: null },
tankhardwareId: { type: String, default: null }, tankhardwareId: { type: String, default: null },

Loading…
Cancel
Save