In the transfer modal also have the option to transfer to another whatsapp

This commit is contained in:
Ricardo Paes
2022-02-27 00:52:17 -03:00
parent 43f2771a93
commit 69023ef81e
7 changed files with 43 additions and 2 deletions

View File

@@ -33,6 +33,10 @@ const UpdateTicketService = async ({
const ticket = await ShowTicketService(ticketId);
await SetTicketMessagesAsRead(ticket);
if(whatsappId && ticket.whatsappId !== whatsappId) {
await CheckContactOpenTickets(ticket.contactId, whatsappId);
}
const oldStatus = ticket.status;
const oldUserId = ticket.user?.id;