@xuda.io/xuda-worker-bundle-min 1.3.803 → 1.3.804

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.
Files changed (2) hide show
  1. package/index.js +9 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -214,7 +214,7 @@ func.common.db = async function (
214
214
  serviceP,
215
215
  dataP,
216
216
  opt = {},
217
- db_driver
217
+ dsSession
218
218
  ) {
219
219
  return new Promise(async function (resolve, reject) {
220
220
  var _session = SESSION_OBJ[SESSION_ID];
@@ -288,6 +288,13 @@ func.common.db = async function (
288
288
  delete _data.count;
289
289
  delete _data.reduce;
290
290
  delete _data.prog_id;
291
+ delete _data.sortModel;
292
+
293
+ if (dsSession && _session.DS_GLB[dsSession]) {
294
+ if (_session.DS_GLB[dsSession].refreshed) {
295
+ delete _data.filterModel;
296
+ }
297
+ }
291
298
 
292
299
  return cleanString(_data);
293
300
  };
@@ -1897,7 +1904,7 @@ func.datasource.prepare = async function (
1897
1904
  let _ds = SESSION_OBJ[SESSION_ID].DS_GLB[dataSourceNoP];
1898
1905
  console.log("DATASOURCE_REFRESH", dataSourceNoP);
1899
1906
  IS_DATASOURCE_REFRESH = true;
1900
-
1907
+ _ds.refreshed = true;
1901
1908
  try {
1902
1909
  if (!_ds.v) _ds.v = {};
1903
1910
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.803",
3
+ "version": "1.3.804",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {