From c2056b5d674cd1333a99337cda502f540e36d1e3 Mon Sep 17 00:00:00 2001 From: jjcampis Date: Wed, 28 Jun 2023 19:07:24 -0300 Subject: [PATCH] =?UTF-8?q?a=C3=B1adido=20nodo=20de=20salida=20en=20chats-?= =?UTF-8?q?out?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chats-out.html | 2 +- chats-out.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chats-out.html b/chats-out.html index 652f77a..5b76a8e 100644 --- a/chats-out.html +++ b/chats-out.html @@ -7,7 +7,7 @@ whatsappLink: {value:"whatsapp-web", type:'whatsappLink'}, number: {value: ""} }, - outputs:0, + outputs:1, inputs:1, icon: 'whatsappLink.svg', align: 'right', diff --git a/chats-out.js b/chats-out.js index 0bc906b..26c0359 100644 --- a/chats-out.js +++ b/chats-out.js @@ -9,6 +9,8 @@ module.exports = function(RED) { let SetStatus = function(WAStatus, color){ node.status({fill:color,shape:"dot",text:WAStatus}); + msg = {payload : WAStatus}; + node.send(msg); }; const delay = ms => new Promise(resolve => setTimeout(resolve, ms));