Skip to content

Commit

Permalink
fix outOfHours message when entering a queue
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Oct 14, 2024
1 parent d93290b commit de936c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/services/WbotServices/wbotMessageListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ const startQueue = async (wbot: Session, ticket: Ticket, queue: Queue) => {
!isNil(currentSchedule) &&
(!currentSchedule || currentSchedule.inActivity === false)
) {
const outOfHoursMessage = queue.outOfHoursMessage.trim() || "Estamos fora do horário de expediente";
const outOfHoursMessage = queue.outOfHoursMessage?.trim() || "Estamos fora do horário de expediente";
const body = formatBody(`${outOfHoursMessage}\n\n*[ # ]* - Voltar ao Menu Principal`, ticket.contact);
const sentMessage = await wbot.sendMessage(
`${contact.number}@${ticket.isGroup ? "g.us" : "s.whatsapp.net"}`, {
Expand Down

0 comments on commit de936c3

Please sign in to comment.