Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Zork33 committed Dec 22, 2020
1 parent 4389c29 commit 7ffe12d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 3 additions & 7 deletions lib/config/_processActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
});
} else {
if (action.$$src.skipValidate) {
res.skipValidate = true;
action.skipValidate = true;
}
}
}
Expand All @@ -103,15 +103,11 @@
}

if (action.$$src.hasOwnProperty('arguments')) {
result.context(Result.prop('arguments'), function () {
return action.arguments = processFields(result, action, config, 'arguments', true);
});
action.arguments = processFields(result, action, config, 'arguments', true);
}

if (action.$$src.hasOwnProperty('result')) {
result.context(Result.prop('result'), function () {
return action.result = processFields(result, action, config, 'result', true); // result.context
});
action.result = processFields(result, action, config, 'result', true); // result.context
}
}
});
Expand Down
10 changes: 3 additions & 7 deletions src/config/_processActions.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ processActions = (result, doc, config, noSystemItems) ->

else

res.skipValidate = true if action.$$src.skipValidate
action.skipValidate = true if action.$$src.skipValidate

if action.$$src.hasOwnProperty('static')

Expand All @@ -80,15 +80,11 @@ processActions = (result, doc, config, noSystemItems) ->

if action.$$src.hasOwnProperty('arguments')

result.context (Result.prop 'arguments'), ->

action.arguments = processFields result, action, config, 'arguments', true
action.arguments = processFields result, action, config, 'arguments', true

if action.$$src.hasOwnProperty('result')

result.context (Result.prop 'result'), ->

action.result = processFields result, action, config, 'result', true
action.result = processFields result, action, config, 'result', true

return # result.context

Expand Down

0 comments on commit 7ffe12d

Please sign in to comment.