@lucaapp/service-utils 5.13.0 → 5.13.1
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.
|
@@ -17,7 +17,9 @@ const createSequelizeDbAdapter = (sequelize) => ({
|
|
|
17
17
|
const connectionManager = sequelize.connectionManager;
|
|
18
18
|
const connection = await connectionManager.getConnection({ type: 'write' });
|
|
19
19
|
try {
|
|
20
|
-
const result =
|
|
20
|
+
const result = values && values.length > 0
|
|
21
|
+
? await connection.query(text, values)
|
|
22
|
+
: await connection.query(text);
|
|
21
23
|
return {
|
|
22
24
|
rows: Array.isArray(result.rows) ? result.rows : [],
|
|
23
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucaapp/service-utils",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -99,6 +99,7 @@
|
|
|
99
99
|
"follow-redirects": "^1.16.0",
|
|
100
100
|
"axios": "1.16.0",
|
|
101
101
|
"path-to-regexp": "0.1.13",
|
|
102
|
-
"ip-address": "10.1.1"
|
|
102
|
+
"ip-address": "10.1.1",
|
|
103
|
+
"fast-xml-builder": "^1.1.7"
|
|
103
104
|
}
|
|
104
105
|
}
|