better escape for node-red without done.

This commit is contained in:
Dave Conway-Jones 2019-09-26 13:39:25 +01:00
parent 1f0ab0937d
commit a318dc56ff
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ module.exports = function(RED) {
this.on("input", function(msg, send, done) {
if (msg.hasOwnProperty("payload")) {
send = send || node.send;
send = send || function() { node.send.apply(node,arguments) };
if (smtpTransport) {
node.status({fill:"blue",shape:"dot",text:"email.status.sending"});
if (msg.to && node.name && (msg.to !== node.name)) {

View File

@ -1,6 +1,6 @@
{
"name": "node-red-node-email",
"version": "1.7.0",
"version": "1.7.1",
"description": "Node-RED nodes to send and receive simple emails",
"dependencies": {
"imap": "^0.8.19",