Skip to content

Commit

Permalink
avoid npe if transfermessage is null
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Dec 15, 2024
1 parent d7d8d4a commit 1c7b212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/services/TicketServices/UpdateTicketService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const UpdateTicketService = async ({
);

if (!ticket.isGroup) {
if (transferMessage) {
if (transferMessage?.trim()) {
const queueChangedMessage = await wbot.sendMessage(
`${ticket.contact.number}@${
ticket.isGroup ? "g.us" : "s.whatsapp.net"
Expand Down

0 comments on commit 1c7b212

Please sign in to comment.