@xuda.io/xuda-dbs-plugin-xuda 1.0.190 → 1.0.191
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 +13 -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.191",
         
     | 
| 
       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
    
    | 
         @@ -254,7 +254,19 @@ const get_opt = function (e, table_obj) { 
     | 
|
| 
       254 
254 
     | 
    
         
             
                opt.sort = sort;
         
     | 
| 
       255 
255 
     | 
    
         
             
              }
         
     | 
| 
       256 
256 
     | 
    
         | 
| 
       257 
     | 
    
         
            -
              if (e?.sortModel?.length) {
         
     | 
| 
      
 257 
     | 
    
         
            +
              // if (e?.sortModel?.length) {
         
     | 
| 
      
 258 
     | 
    
         
            +
              //   opt.sort = JSON.parse(e.sortModel);
         
     | 
| 
      
 259 
     | 
    
         
            +
              //   if (opt.sort) {
         
     | 
| 
      
 260 
     | 
    
         
            +
              //     for (const [key, val] of Object.entries(opt.sort)) {
         
     | 
| 
      
 261 
     | 
    
         
            +
              //       var field_name = val.colId;
         
     | 
| 
      
 262 
     | 
    
         
            +
              //       opt.sort[key] = {
         
     | 
| 
      
 263 
     | 
    
         
            +
              //         ["udfData.data." + field_name]: val.sort,
         
     | 
| 
      
 264 
     | 
    
         
            +
              //       };
         
     | 
| 
      
 265 
     | 
    
         
            +
              //     }
         
     | 
| 
      
 266 
     | 
    
         
            +
              //   }
         
     | 
| 
      
 267 
     | 
    
         
            +
              // }
         
     | 
| 
      
 268 
     | 
    
         
            +
             
     | 
| 
      
 269 
     | 
    
         
            +
              if (e?.sortModel && JSON.parse(e.sortModel).length) {
         
     | 
| 
       258 
270 
     | 
    
         
             
                opt.sort = JSON.parse(e.sortModel);
         
     | 
| 
       259 
271 
     | 
    
         
             
                if (opt.sort) {
         
     | 
| 
       260 
272 
     | 
    
         
             
                  for (const [key, val] of Object.entries(opt.sort)) {
         
     |