Skip to content

Commit

Permalink
Correção para o usuário não entrar em setor fora do horário de atendi…
Browse files Browse the repository at this point in the history
…mento
  • Loading branch information
rtenorioh authored Jun 19, 2022
1 parent 475757d commit 32598d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/src/services/WbotServices/wbotMessageListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,7 @@ const verifyQueue = async (
const choosenQueue = queues[+selectedOption - 1];

if (choosenQueue) {
await UpdateTicketService({
ticketData: { queueId: choosenQueue.id },
ticketId: ticket.id,
});


const Hr = new Date();

const hh: number = Hr.getHours() * 60 * 60;
Expand Down Expand Up @@ -193,6 +189,10 @@ const verifyQueue = async (
debouncedSentMessage();

} else {
await UpdateTicketService({
ticketData: { queueId: choosenQueue.id },
ticketId: ticket.id,
});

const chat = await msg.getChat();
await chat.sendStateTyping();
Expand Down

0 comments on commit 32598d2

Please sign in to comment.