mirror of https://github.com/node-red/node-red.git
fix datatype in node config not used. fixes #3215
parent
7560bb8d7b
commit
153f87704b
|
@ -1040,7 +1040,7 @@ module.exports = function(RED) {
|
|||
|
||||
//subscribe to sub.topic & hook up subscriptionHandler
|
||||
node.brokerConn.subscribe(sub.topic, options, function (topic, payload, packet) {
|
||||
subscriptionHandler(node, sub.datatype, topic, payload, packet);
|
||||
subscriptionHandler(node, sub.datatype || node.datatype, topic, payload, packet);
|
||||
}, node.id);
|
||||
node.dynamicSubs[sub.topic] = sub; //save for later unsubscription & 'list' action
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue