mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02: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) {
|
function prepareJSONataExpression(value,node) {
|
||||||
var expr = jsonata(value);
|
var expr = jsonata(value);
|
||||||
expr.assign('flowContext',function(val, store) {
|
expr.assign('flowContext',function(val) {
|
||||||
return node.context().flow.get(val, store);
|
return node.context().flow.get(val);
|
||||||
});
|
});
|
||||||
expr.assign('globalContext',function(val, store) {
|
expr.assign('globalContext',function(val) {
|
||||||
return node.context().global.get(val, store);
|
return node.context().global.get(val);
|
||||||
});
|
});
|
||||||
expr.assign('env', function(val) {
|
expr.assign('env', function(val) {
|
||||||
return process.env[val];
|
return process.env[val];
|
||||||
|
Loading…
Reference in New Issue
Block a user