@xuda.io/xuda-dbs-plugin-xuda 1.0.62 → 1.0.64
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 +1 -1
- package/server.js +2 -1
package/package.json
CHANGED
package/server.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
const _ = require("lodash");
|
2
|
+
const crypto = require("node:crypto");
|
2
3
|
|
3
4
|
const check_unique = async function (e, docP, table_obj, db, app_id_reference) {
|
4
5
|
var len = docP.udfIndex.length;
|
@@ -858,7 +859,7 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
|
|
858
859
|
|
859
860
|
rows.push({ id: crypto.randomUUID(), value: obj });
|
860
861
|
}
|
861
|
-
return { code: 1, data: rows };
|
862
|
+
return { code: 1, data: { rows } };
|
862
863
|
}
|
863
864
|
|
864
865
|
var rows = [];
|