number format corrected for chats-out node
This commit is contained in:
parent
32074075d9
commit
4db7b2aff3
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user