@xuda.io/xuda-dbs-plugin-xuda 1.0.209 → 1.0.211
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/server.js +2 -2
- package/studio.mjs +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xuda.io/xuda-dbs-plugin-xuda",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.211",
|
4
4
|
"description": "Xuda Database Socket for Xuda's proprietary structure powered by CouchDB",
|
5
5
|
"scripts": {
|
6
6
|
"pub": "npm version patch --force && npm publish --access public"
|
package/server.js
CHANGED
@@ -270,9 +270,9 @@ const get_opt = function (e, table_obj) {
|
|
270
270
|
opt.sort = JSON.parse(e.sortModel);
|
271
271
|
if (opt.sort) {
|
272
272
|
for (const [key, val] of Object.entries(opt.sort)) {
|
273
|
-
var field_name = val.
|
273
|
+
var field_name = val.field_id;
|
274
274
|
opt.sort[key] = {
|
275
|
-
["udfData.data." + field_name]: val.
|
275
|
+
["udfData.data." + field_name]: val.sort_dir,
|
276
276
|
};
|
277
277
|
}
|
278
278
|
}
|
package/studio.mjs
CHANGED
@@ -289,7 +289,7 @@ const get_opt = function (e, table_obj) {
|
|
289
289
|
for (const [key, val] of Object.entries(opt.sort)) {
|
290
290
|
var field_name = val.colId;
|
291
291
|
opt.sort[key] = {
|
292
|
-
["udfData.data." + field_name]: val.
|
292
|
+
["udfData.data." + field_name]: val.sort_dir,
|
293
293
|
};
|
294
294
|
}
|
295
295
|
}
|