Alteração no código para remover o diretório da sessão do whatsapp somente quando for deletar e não mais quando desconectar a session

pull/1/head
adriano 2022-04-22 10:35:19 -03:00
parent 6056d2d8b5
commit 8edcd968be
2 changed files with 2 additions and 3 deletions

View File

@ -42,7 +42,7 @@ const remove = async (req: Request, res: Response): Promise<Response> => {
' | PATH TO DELETE',path.join(process.cwd(),'.wwebjs_auth', `session-bd_${whatsapp.id}`) ' | PATH TO DELETE',path.join(process.cwd(),'.wwebjs_auth', `session-bd_${whatsapp.id}`)
) )
removeDir(path.join(process.cwd(),'.wwebjs_auth', `session-bd_${whatsapp.id}`)) //removeDir(path.join(process.cwd(),'.wwebjs_auth', `session-bd_${whatsapp.id}`))
wbot.logout(); wbot.logout();

View File

@ -390,7 +390,6 @@ const handleMessage = async (
if( botInfo.isOnQueue && !msg.fromMe && ticket.userId == botInfo.userIdBot){ if( botInfo.isOnQueue && !msg.fromMe && ticket.userId == botInfo.userIdBot){
// test del
if(msg.body === '0'){ if(msg.body === '0'){
const queue = await ShowQueueService(ticket.queue.id); const queue = await ShowQueueService(ticket.queue.id);