Merge branch 'testeA'

pull/1/head
adriano 2022-02-14 08:06:41 -03:00
commit 61ec495a45
1 changed files with 3 additions and 3 deletions

View File

@ -120,6 +120,8 @@ export const remove = async (
await DeleteWhatsAppService(whatsappId);
removeDir(path.join(process.cwd(),'WWebJS', `session-bd_${whatsappId}`))
removeWbot(+whatsappId);
console.log('Deleteou o whatsapp service com id = ', whatsappId)
@ -130,7 +132,5 @@ export const remove = async (
whatsappId: +whatsappId
});
removeDir(path.join(process.cwd(),'WWebJS', `session-bd_${whatsappId}`))
return res.status(200).json({ message: "Whatsapp deleted." });
};