Merge branch 'dual_session_test' into dialogflow
commit
ee0649fa6f
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue