@xuda.io/xuda-worker-bundle-min 1.3.880 → 1.3.882
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/index.js +23 -21
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2365,26 +2365,28 @@ func.datasource.execute = async function (
|
|
|
2365
2365
|
filterModel,
|
|
2366
2366
|
_ds?.progDataSource?.dataSourceFilterModelType
|
|
2367
2367
|
);
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2368
|
+
if (_ds?.progDataSource?.dataSourceLimit) {
|
|
2369
|
+
const ret_rows_found = await func.db.get_query(
|
|
2370
|
+
SESSION_ID,
|
|
2371
|
+
_ds._dataSourceTableId,
|
|
2372
|
+
_ds.v.couchView,
|
|
2373
|
+
dataSourceSession,
|
|
2374
|
+
_ds.viewSourceDesc,
|
|
2375
|
+
"datasource table",
|
|
2376
|
+
prog_obj.progDataSource.dataSourceReduce,
|
|
2377
|
+
null,
|
|
2378
|
+
null,
|
|
2379
|
+
true,
|
|
2380
|
+
null,
|
|
2381
|
+
null,
|
|
2382
|
+
null,
|
|
2383
|
+
filterModel,
|
|
2384
|
+
_ds?.progDataSource?.dataSourceFilterModelType
|
|
2385
|
+
);
|
|
2386
|
+
_ds.rows_found = ret_rows_found?.rows?.[0]?.value || 0;
|
|
2387
|
+
} else {
|
|
2388
|
+
_ds.rows_found = ds?.v?.raw_data?.rows?.length || 0;
|
|
2389
|
+
}
|
|
2388
2390
|
break;
|
|
2389
2391
|
|
|
2390
2392
|
case "array": {
|
|
@@ -4487,7 +4489,7 @@ func.datasource.get_value = async function (
|
|
|
4487
4489
|
);
|
|
4488
4490
|
}
|
|
4489
4491
|
} catch (err) {
|
|
4490
|
-
console.error(err);
|
|
4492
|
+
// console.error(err);
|
|
4491
4493
|
}
|
|
4492
4494
|
}
|
|
4493
4495
|
|