From a2d30f329e91d5a396191ea0a8b994a34a168108 Mon Sep 17 00:00:00 2001 From: adriano Date: Thu, 22 Dec 2022 15:57:05 -0300 Subject: [PATCH] =?UTF-8?q?Altera=C3=A7=C3=A3o=20no=20tempo=20de=20monitor?= =?UTF-8?q?amento=20do=20AutoRestore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/services/WbotServices/StartWhatsAppSession.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/services/WbotServices/StartWhatsAppSession.ts b/backend/src/services/WbotServices/StartWhatsAppSession.ts index 907d28e..5fe013d 100644 --- a/backend/src/services/WbotServices/StartWhatsAppSession.ts +++ b/backend/src/services/WbotServices/StartWhatsAppSession.ts @@ -52,13 +52,15 @@ export const StartWhatsAppSession = async (whatsapp: Whatsapp, backupSession: bo if (Object.keys(lstRestore.filter((e: any) => +e.id == +autoR.whatsappId)).length) { - console.log(' ACONTECENDO RESTORING autoR: ', autoR) + console.log(' EXECUTING RESTORING autoR: ', autoR) continue } const _whatsapp = await Whatsapp.findOne({ where: { id: autoR.whatsappId } }); + console.log('----------------> autoR exec after 120 seconds: ', autoR) + let whatsappStatus = ["CONFLICT", "DEPRECATED_VERSION", "OPENING", @@ -85,7 +87,7 @@ export const StartWhatsAppSession = async (whatsapp: Whatsapp, backupSession: bo } - }, 20000); + }, 120000); }