Add store arg to sync $flowContext/$globalContext

This commit is contained in:
Nick O'Leary
2018-07-25 10:18:59 +01:00
parent 17e6940a42
commit 963ea4177e
2 changed files with 6 additions and 6 deletions

View File

@@ -389,11 +389,11 @@ function evaluateNodeProperty(value, type, node, msg, callback) {
function prepareJSONataExpression(value,node) {
var expr = jsonata(value);
expr.assign('flowContext',function(val) {
return node.context().flow.get(val);
expr.assign('flowContext',function(val, store) {
return node.context().flow.get(val, store);
});
expr.assign('globalContext',function(val) {
return node.context().global.get(val);
expr.assign('globalContext',function(val, store) {
return node.context().global.get(val, store);
});
expr.assign('env', function(val) {
return process.env[val];