feat: Update response message for clarity

feat-scaling-ticket-remote-creation
adriano 2024-02-21 18:10:30 -03:00
parent 9ff95ff4bd
commit d25d296498
1 changed files with 5 additions and 3 deletions

View File

@ -192,7 +192,7 @@ export const remoteTicketCreation = async (
ticketId: ticket.id
});
}
}
}
if (!ticket) {
ticket = await FindOrCreateTicketService(
@ -226,11 +226,13 @@ export const remoteTicketCreation = async (
}
console.log(
`REMOTE TICKET CREATION FROM ENDPOINT | STATUS: 500 | MSG: Whatsapp number ${contact_from} disconnected`
`REMOTE TICKET CREATION FROM ENDPOINT | STATUS: 500 | MSG: Whatsapp number ${contact_from} disconnected or it doesn't exist in omnihit`
);
return res
.status(500)
.json({ msg: `Whatsapp number ${contact_from} disconnected` });
.json({
msg: `Whatsapp number ${contact_from} disconnected or it doesn't exist in omnihit`
});
};
export const store = async (req: Request, res: Response): Promise<Response> => {