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