1
0
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:
Nick O'Leary 2018-07-25 11:07:29 +01:00
parent 963ea4177e
commit 4609ee75b6
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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];