Remoção de variável contadora
parent
82132ec414
commit
bc79a29f21
|
@ -5,24 +5,10 @@ import SendWhatsAppMessage from "../services/WbotServices/SendWhatsAppMessage";
|
||||||
import ListSchedulingNotifyService from "../services/SchedulingNotifyServices/ListSchedulingNotifyService";
|
import ListSchedulingNotifyService from "../services/SchedulingNotifyServices/ListSchedulingNotifyService";
|
||||||
import DeleteSchedulingNotifyService from "../services/SchedulingNotifyServices/DeleteSchedulingNotifyService";
|
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 () => {
|
const monitor = async () => {
|
||||||
countTest += 1
|
|
||||||
console.log(`${countTest}`)
|
|
||||||
|
|
||||||
|
|
||||||
let date = new Date()
|
let date = new Date()
|
||||||
|
|
||||||
|
@ -54,6 +40,7 @@ const monitor = async () => {
|
||||||
DeleteSchedulingNotifyService(schedulingNotifies[0].id)
|
DeleteSchedulingNotifyService(schedulingNotifies[0].id)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue