number format corrected for chats-out node

This commit is contained in:
rawee 2022-12-08 21:21:06 +05:30
parent 32074075d9
commit 4db7b2aff3

View File

@ -36,8 +36,13 @@ module.exports = function(RED) {
}; };
WAConnect(); WAConnect();
async function WAClose(){ function WAClose(){
await client.destroy(); try {
client.destroy();
}
catch(e){
WAnode.err(`Error : Too many instructions! Try again.`)
}
}; };
async function connectionSetup(){ async function connectionSetup(){
@ -78,7 +83,6 @@ module.exports = function(RED) {
this.WAConnect = WAConnect; this.WAConnect = WAConnect;
this.client = client; this.client = client;
this.WARestart = WARestart; this.WARestart = WARestart;
this.whatsappConnectionStatus = whatsappConnectionStatus; this.whatsappConnectionStatus = whatsappConnectionStatus;
} }