Merge pull request #3310 from node-red/group-env-fix

Update Function to use correct api to access env vars
This commit is contained in:
Nick O'Leary 2022-01-04 18:57:33 +00:00 committed by GitHub
commit 332b372e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

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