@things-factory/integration-base 6.2.114 → 6.2.117

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-base",
3
- "version": "6.2.114",
3
+ "version": "6.2.117",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -26,13 +26,13 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@apollo/client": "^3.6.9",
29
- "@things-factory/api": "^6.2.114",
30
- "@things-factory/auth-base": "^6.2.114",
31
- "@things-factory/env": "^6.2.103",
32
- "@things-factory/oauth2-client": "^6.2.114",
33
- "@things-factory/scheduler-client": "^6.2.114",
34
- "@things-factory/shell": "^6.2.114",
35
- "@things-factory/utils": "^6.2.103",
29
+ "@things-factory/api": "^6.2.115",
30
+ "@things-factory/auth-base": "^6.2.115",
31
+ "@things-factory/env": "^6.2.115",
32
+ "@things-factory/oauth2-client": "^6.2.115",
33
+ "@things-factory/scheduler-client": "^6.2.115",
34
+ "@things-factory/shell": "^6.2.115",
35
+ "@things-factory/utils": "^6.2.115",
36
36
  "async-mqtt": "^2.5.0",
37
37
  "chance": "^1.1.11",
38
38
  "cross-fetch": "^3.0.4",
@@ -47,5 +47,5 @@
47
47
  "devDependencies": {
48
48
  "@types/cron": "^2.0.1"
49
49
  },
50
- "gitHead": "6b471894613abd775ce70b23790f89a2505c825a"
50
+ "gitHead": "5e4b0cfba46d97d2f570b2c7da0e08863a409130"
51
51
  }
@@ -63,8 +63,24 @@ export class OracleConnector implements Connector {
63
63
  const result = await connection.execute(procedure, params, {
64
64
  outFormat: Client.OBJECT
65
65
  })
66
+
67
+ var taskResult = {}
68
+ let paramKeys = Object.keys(params)
69
+
70
+ for (const paramKey of paramKeys) {
71
+ if (params[paramKey].dir === Client?.BIND_OUT) {
72
+ if (params[paramKey].type === Client?.CURSOR) {
73
+ const resultSetTemp = result.outBinds[paramKey]
74
+ taskResult[paramKey] = await resultSetTemp.getRows()
75
+ await resultSetTemp.close()
76
+ } else {
77
+ taskResult[paramKey] = result.outBinds[paramKey]
78
+ }
79
+ }
80
+ }
81
+
66
82
  await connection.close()
67
- return result
83
+ return taskResult
68
84
  },
69
85
  close: async () => {
70
86
  await Client.getPool(poolAlias).close(10)
@@ -97,23 +97,8 @@ async function OracleProcedure(step: InputStep, context: Context) {
97
97
 
98
98
  const result = await dbconnection.execute(code, procedureParameters)
99
99
 
100
- var taskResult = {}
101
- let paramKeys = Object.keys(procedureParameters)
102
-
103
- for (const paramKey of paramKeys) {
104
- if (procedureParameters[paramKey].dir === oracledb?.BIND_OUT) {
105
- if (procedureParameters[paramKey].type === oracledb?.CURSOR) {
106
- const resultSetTemp = result.outBinds[paramKey]
107
- taskResult[paramKey] = await resultSetTemp.getRows()
108
- await resultSetTemp.close()
109
- } else {
110
- taskResult[paramKey] = result.outBinds[paramKey]
111
- }
112
- }
113
- }
114
-
115
100
  return {
116
- data: taskResult
101
+ data: result
117
102
  }
118
103
  }
119
104