@pxp-nd/flow 1.1.25 → 1.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,7 +45,6 @@ const common_1 = require("@pxp-nd/common");
45
45
  let NodeInstance = class NodeInstance extends core_1.Controller {
46
46
  async RecursiveInstance(params, manager) {
47
47
  var _a;
48
- console.log("viene al nodeInstance");
49
48
  //https://lodash.com/docs/4.17.15#template
50
49
  lodash_1.default.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
51
50
  //todo after this we need to get the json variables and execute the view and conditions configured in the database
@@ -103,6 +102,14 @@ let NodeInstance = class NodeInstance extends core_1.Controller {
103
102
  },
104
103
  data: mergeJson,
105
104
  };
105
+ const resControllerAxios = await (0, core_1.__)((0, axios_1.default)(config));
106
+ if ('data' in resControllerAxios && resControllerAxios.data) {
107
+ const response = resControllerAxios.data;
108
+ if ('tokenId' in response && response.tokenId) {
109
+ nodeInstance.extraArgs = { tokenId: response.tokenId };
110
+ await manager.save(NodeInstance_1.default, nodeInstance);
111
+ }
112
+ }
106
113
  }
107
114
  else {
108
115
  const config = {
@@ -114,14 +121,13 @@ let NodeInstance = class NodeInstance extends core_1.Controller {
114
121
  },
115
122
  data: mergeJson,
116
123
  };
117
- }
118
- // @ts-ignore
119
- const resControllerAxios = await (0, core_1.__)((0, axios_1.default)(config));
120
- if ('data' in resControllerAxios && resControllerAxios.data) {
121
- const response = resControllerAxios.data;
122
- if ('tokenId' in response && response.tokenId) {
123
- nodeInstance.extraArgs = { tokenId: response.tokenId };
124
- await manager.save(NodeInstance_1.default, nodeInstance);
124
+ const resControllerAxios = await (0, core_1.__)((0, axios_1.default)(config));
125
+ if ('data' in resControllerAxios && resControllerAxios.data) {
126
+ const response = resControllerAxios.data;
127
+ if ('tokenId' in response && response.tokenId) {
128
+ nodeInstance.extraArgs = { tokenId: response.tokenId };
129
+ await manager.save(NodeInstance_1.default, nodeInstance);
130
+ }
125
131
  }
126
132
  }
127
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/flow",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "description": "Workflow module for pxp-nd framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",