26.2-pre-2

This commit is contained in:
1tzEmerald committed 2026-08-06 16:30:04 +01:00
1 parent ea2a8c97ae
commit 762fcf45c3
26 files changed
+1252 -2963

No files matched your search

+16
View File
@@ -194,6 +194,18 @@ module.exports = {
ticketName: ticket.name || null,
ticketNumber: ticket.number || null,
});
if (global.apiServer) {
global.apiServer.broadcast("ticket_created", {
ticket_id: ticket.id,
user_id: ticket.user,
subject: ticket.reason || "",
description: ticket.description || "",
department: ticket.department || "general",
priority: ticket.priority || "medium",
created_at: now
});
}
},
updateTicketQuestionAnswers(ticketId, questionAnswers = []) {
@@ -236,6 +248,10 @@ module.exports = {
updatedAt: Date.now(),
ticketId,
});
if (global.apiServer && status === "closed") {
global.apiServer.broadcast("ticket_closed", { ticket_id: ticketId });
}
},
updateTicketDepartment(ticketId, department) {