Skip to content

Commit

Permalink
do not send empty transfer message - fix #254 fix #227
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Dec 15, 2024
1 parent 01150fc commit d7d8d4a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions backend/src/services/TicketServices/UpdateTicketService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,6 @@ const UpdateTicketService = async ({
}
);
await verifyMessage(queueChangedMessage, ticket, ticket.contact);
} else {
const queueChangedMessage = await wbot.sendMessage(
`${ticket.contact.number}@${
ticket.isGroup ? "g.us" : "s.whatsapp.net"
}`,
{
text: "Você foi transferido, em breve iremos iniciar seu atendimento."
}
);
await verifyMessage(queueChangedMessage, ticket, ticket.contact);
}
}
}
Expand Down

0 comments on commit d7d8d4a

Please sign in to comment.