mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
parent
fbe37c4eb9
commit
d5cf7c7a9d
@ -56,7 +56,7 @@ module.exports = function(RED) {
|
||||
if (Array.isArray(msg.payload)) {
|
||||
if (msg.payload.length === (msg.topic.split('$').length - 1) ) { bind = msg.payload; }
|
||||
else { bind = []; }
|
||||
}
|
||||
} else { bind = []; }
|
||||
node.mydbConfig.db.all(msg.topic, bind, function(err, row) {
|
||||
if (err) { node.error(err,msg); }
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user