|
|
@ -9728,7 +9728,7 @@ exports.updateHardwareList = async (req, reply) => {
|
|
|
|
if (!support) return reply.code(404).send({ error: "Support record not found" });
|
|
|
|
if (!support) return reply.code(404).send({ error: "Support record not found" });
|
|
|
|
|
|
|
|
|
|
|
|
const escalationIssue = (support.categorizedIssues || []).find(issue =>
|
|
|
|
const escalationIssue = (support.categorizedIssues || []).find(issue =>
|
|
|
|
issue.category === "Escalation" && issue.hardwareId === hardwareId
|
|
|
|
issue.category === "OutDoor Escalation" && issue.hardwareId === hardwareId
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
if (!escalationIssue) {
|
|
|
|
if (!escalationIssue) {
|
|
|
@ -10120,7 +10120,7 @@ exports.resolvedIssuesForSupport = async (req, reply) => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!["Escalation", "Pending"].includes(category)) {
|
|
|
|
if (!["OutDoor Escalation", "LongTerm Issues"].includes(category)) {
|
|
|
|
return reply.code(400).send({
|
|
|
|
return reply.code(400).send({
|
|
|
|
message: "Invalid category. Only 'Escalation' or 'Pending' are allowed",
|
|
|
|
message: "Invalid category. Only 'Escalation' or 'Pending' are allowed",
|
|
|
|
});
|
|
|
|
});
|
|
|
|