Fixup Change node use of node.done

This commit is contained in:
Nick O'Leary 2019-10-11 11:08:25 +01:00
parent f62a933d1c
commit 6f91786f4d
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 2 additions and 2 deletions

View File

@ -331,11 +331,11 @@ module.exports = function(RED) {
this.on('input', function(msg, send, done) {
applyRules(msg, 0, (err,msg) => {
if (err) {
node.error(err,msg);
done(err);
} else if (msg) {
send(msg);
done();
}
done();
})
});
}