Update Function to use correct api to access env vars

Fixes #3299
This commit is contained in:
Nick O'Leary
2021-12-27 11:55:10 +00:00
parent 91cb6ba73b
commit 0dbc35c252

View File

@@ -234,8 +234,7 @@ module.exports = function(RED) {
},
env: {
get: function(envVar) {
var flow = node._flow;
return flow.getSetting(envVar);
return RED.util.getSetting(node, envVar);
}
},
setTimeout: function () {