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