From 7ffe12d9490976e2418e68644a108156ca9082a0 Mon Sep 17 00:00:00 2001 From: Alexey Zorkaltsev Date: Tue, 22 Dec 2020 15:30:29 +0300 Subject: [PATCH] wip --- lib/config/_processActions.js | 10 +++------- src/config/_processActions.coffee | 10 +++------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/lib/config/_processActions.js b/lib/config/_processActions.js index 4cb740a..8fe5054 100644 --- a/lib/config/_processActions.js +++ b/lib/config/_processActions.js @@ -83,7 +83,7 @@ }); } else { if (action.$$src.skipValidate) { - res.skipValidate = true; + action.skipValidate = true; } } } @@ -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 } } }); diff --git a/src/config/_processActions.coffee b/src/config/_processActions.coffee index 630d0ae..003e26a 100644 --- a/src/config/_processActions.coffee +++ b/src/config/_processActions.coffee @@ -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') @@ -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