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