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