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

@ -226,11 +226,13 @@ export const remoteTicketCreation = async (
} }
console.log( 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 return res
.status(500) .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> => { export const store = async (req: Request, res: Response): Promise<Response> => {