mirror of
https://github.com/node-red/node-red
synced 2024-11-22 16:33:24 +00:00
Revert jsonata sync access to context stores
- store access only possible with callback
This commit is contained in:
parent
963ea4177e
commit
4609ee75b6
@ -389,11 +389,11 @@ function evaluateNodeProperty(value, type, node, msg, callback) {
|
||||
|
||||
function prepareJSONataExpression(value,node) {
|
||||
var expr = jsonata(value);
|
||||
expr.assign('flowContext',function(val, store) {
|
||||
return node.context().flow.get(val, store);
|
||||
expr.assign('flowContext',function(val) {
|
||||
return node.context().flow.get(val);
|
||||
});
|
||||
expr.assign('globalContext',function(val, store) {
|
||||
return node.context().global.get(val, store);
|
||||
expr.assign('globalContext',function(val) {
|
||||
return node.context().global.get(val);
|
||||
});
|
||||
expr.assign('env', function(val) {
|
||||
return process.env[val];
|
||||
|
Loading…
Reference in New Issue
Block a user