open more than one ticket per user as long as it is using another whatsapp

This commit is contained in:
Ricardo Paes
2022-02-23 11:21:11 -03:00
parent afb5d68602
commit acd628028e
4 changed files with 13 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ const UpdateTicketService = async ({
const oldUserId = ticket.user?.id;
if (oldStatus === "closed") {
await CheckContactOpenTickets(ticket.contact.id);
await CheckContactOpenTickets(ticket.contact.id, ticket.whatsappId);
}
await ticket.update({