Merge pull request #4225 from node-red/4196-fix-jsonata-env-var-async

Add callback to getSetting to support async jsonata access
This commit is contained in:
Nick O'Leary
2023-06-21 15:56:11 +01:00
committed by GitHub
9 changed files with 287 additions and 90 deletions

View File

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