Alteração no tempo de monitoramento do AutoRestore

pull/21/head
adriano 2022-12-22 15:57:05 -03:00
parent ab1c89631e
commit a2d30f329e
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);
}