From 4609ee75b60e45c51275ee43db6b43ffb297cb94 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 25 Jul 2018 11:07:29 +0100 Subject: [PATCH] Revert jsonata sync access to context stores - store access only possible with callback --- red/runtime/util.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/red/runtime/util.js b/red/runtime/util.js index d696f7f9a..d5643fcd5 100644 --- a/red/runtime/util.js +++ b/red/runtime/util.js @@ -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];