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) } + };