From 6d0f70f647e669594f3ce8c66a66b4c8ea1cf6cb Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Mon, 23 Jun 2025 15:22:59 +0530 Subject: [PATCH 1/2] hadwarelist added in fetch issues by category --- src/controllers/installationController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/installationController.js b/src/controllers/installationController.js index 93fb54ed..14b1eb16 100644 --- a/src/controllers/installationController.js +++ b/src/controllers/installationController.js @@ -8781,7 +8781,8 @@ exports.particularCategory = async (req, reply) => { outDoor_status: master.outDoor_status, movedAt: category !== "Resolved" ? (issue?.movedAt || null) : null, resolvedAt: category === "Resolved" ? (issue?.resolvedAt || null) : null, - category: issue?.category || category + category: issue?.category || category, + hardwareList: master.hardwareList || {} }); } From 776b5e2c579a473f38f9f3c5ddac250509660cf0 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Tue, 24 Jun 2025 11:15:31 +0530 Subject: [PATCH 2/2] changes --- src/models/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/store.js b/src/models/store.js index 53c7c870..aef4372c 100644 --- a/src/models/store.js +++ b/src/models/store.js @@ -586,7 +586,7 @@ const insensorsSchema = new mongoose.Schema({ tankName: { type: String, default: "0" }, tankLocation: { type: String, default: "0" }, 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 }, location: { type: String, default: null }, tankhardwareId: { type: String, default: null },