Merge branch 'dual_session_test' into dialogflow

pull/20/head
adriano 2022-12-22 15:57:27 -03:00
commit ee0649fa6f
1 changed files with 4 additions and 2 deletions

View File

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