From 901711f308006b6f17d14fc94e1c83341fbde4f9 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Fri, 13 Jun 2025 12:37:33 +0530 Subject: [PATCH] resolved issues ticketId added --- src/controllers/installationController.js | 2 ++ src/models/store.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/controllers/installationController.js b/src/controllers/installationController.js index e902f827..070349a3 100644 --- a/src/controllers/installationController.js +++ b/src/controllers/installationController.js @@ -9191,6 +9191,7 @@ exports.resolvedIssuesForSupport = async (req, reply) => { type: issue.type, hardwareId: issue.hardwareId, masterHardwareId, + ticketId: issue.ticketId, category: "Resolved", resolvedAt: nowTime, originalMovedAt: issue.movedAt || null, @@ -9228,6 +9229,7 @@ exports.resolvedIssuesForSupport = async (req, reply) => { type: issue.type, hardwareId: issue.hardwareId, masterHardwareId, + ticketId: issue.ticketId, category: "Escalation", movedAt: nowTime, movedToCategory: true, diff --git a/src/models/store.js b/src/models/store.js index 4a3291a6..0167e3fb 100644 --- a/src/models/store.js +++ b/src/models/store.js @@ -332,6 +332,8 @@ const installationschema = new mongoose.Schema({ category: String, // will be 'Resolved' resolvedAt: String, // ISO string or Date originalMovedAt: String, // store original movedAt for reference + ticketId: String, + } ], masterDisconnected: [{ // new field for master disconnected details