From bc79a29f21f300ecc5c3c97227e9b79e49df6a50 Mon Sep 17 00:00:00 2001 From: adriano Date: Mon, 7 Mar 2022 07:51:04 -0300 Subject: [PATCH] =?UTF-8?q?Remo=C3=A7=C3=A3o=20de=20vari=C3=A1vel=20contad?= =?UTF-8?q?ora?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../helpers/SchedulingNotifySendMessage.ts | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/backend/src/helpers/SchedulingNotifySendMessage.ts b/backend/src/helpers/SchedulingNotifySendMessage.ts index d349085..f8ca571 100644 --- a/backend/src/helpers/SchedulingNotifySendMessage.ts +++ b/backend/src/helpers/SchedulingNotifySendMessage.ts @@ -5,24 +5,10 @@ import SendWhatsAppMessage from "../services/WbotServices/SendWhatsAppMessage"; import ListSchedulingNotifyService from "../services/SchedulingNotifyServices/ListSchedulingNotifyService"; import DeleteSchedulingNotifyService from "../services/SchedulingNotifyServices/DeleteSchedulingNotifyService"; -let countTest: number = 0 -let scheduler_monitor:any; + +let scheduler_monitor:any; -// const test = async () => { - -// const ticket = await ShowTicketService('336'); - -// SetTicketMessagesAsRead(ticket); - -// await SendWhatsAppMessage({ body: 'Olá Sr Adriano, estamos entrando em contato para confirmar seu retorno hoje', ticket }); - -// } - - -const monitor = async () => { - countTest += 1 - console.log(`${countTest}`) - +const monitor = async () => { let date = new Date() @@ -54,6 +40,7 @@ const monitor = async () => { DeleteSchedulingNotifyService(schedulingNotifies[0].id) } + };