ashok 5 months ago
commit 9869452d4b

@ -635,7 +635,7 @@ exports.assignTeamMemberToQuotation = async (request, reply) => {
// 🔁 Raise ticket if applicable
const sensor = await Insensors.findOne({ hardwareId }).lean();
if (sensor?.customerId) {
// await raiseATicketLikeLogic(sensor.customerId, hardwareId);
await raiseATicketLikeLogic(sensor.customerId, hardwareId);
}
return reply.send({
@ -716,7 +716,7 @@ exports.getByHardwareIdSupport = async (req, reply) => {
// 🔁 Raise ticket if applicable
const sensor = await Insensors.findOne({ hardwareId }).lean();
if (sensor?.customerId) {
// await raiseATicketLikeLogic(sensor.customerId, hardwareId);
await raiseATicketLikeLogic(sensor.customerId, hardwareId);
}
return reply.send({

Loading…
Cancel
Save