resolved issues ticketId added

master^2
Bhaskar 4 months ago
parent 7bbed5c02f
commit 901711f308

@ -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,

@ -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

Loading…
Cancel
Save