@xuda.io/xuda-worker-bundle-min 1.3.460 → 1.3.462
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 +4 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -315,8 +315,6 @@ func.common.db = async function (
|
|
|
315
315
|
const read_dbs_pouch = async function (db) {
|
|
316
316
|
const rep_id = get_request_id();
|
|
317
317
|
|
|
318
|
-
////// validate existence of whole table request
|
|
319
|
-
|
|
320
318
|
const { code: table_req_code, data: table_req_id } =
|
|
321
319
|
await validate_existence_of_whole_table_request(db);
|
|
322
320
|
if (table_req_code > 0) {
|
|
@@ -409,7 +407,10 @@ func.common.db = async function (
|
|
|
409
407
|
typeof IS_PROCESS_SERVER === "undefined") ||
|
|
410
408
|
!SESSION_OBJ?.[SESSION_ID]?.rpi_http_methods?.includes(serviceP)
|
|
411
409
|
) {
|
|
412
|
-
if (
|
|
410
|
+
if (
|
|
411
|
+
func.db.pouch.get_replication_stat() &&
|
|
412
|
+
SESSION_OBJ[SESSION_ID].engine_mode === "live_preview"
|
|
413
|
+
) {
|
|
413
414
|
const db = await func.utils.connect_pouchdb(SESSION_ID);
|
|
414
415
|
switch (serviceP) {
|
|
415
416
|
case "dbs_read": {
|