@xuda.io/xuda-worker-bundle-min 1.3.476 → 1.3.478

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 -10
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -407,20 +407,19 @@ func.common.db = async function (
407
407
  typeof IS_PROCESS_SERVER === "undefined") ||
408
408
  !SESSION_OBJ?.[SESSION_ID]?.rpi_http_methods?.includes(serviceP)
409
409
  ) {
410
- if (
411
- (await func.db.pouch.get_replication_stat(SESSION_ID)) &&
412
- (_session.engine_mode === "live_preview" ||
413
- APP_OBJ[_session.APP_ID].app_available_offline)
414
- ) {
410
+ // (await func.db.pouch.get_replication_stat(SESSION_ID)) &&
411
+ // (_session.engine_mode === "live_preview" ||
412
+ // APP_OBJ[_session.APP_ID].app_available_offline)
413
+ if (await func.db.pouch.get_replication_stat(SESSION_ID)) {
415
414
  const db = await func.utils.connect_pouchdb(SESSION_ID);
416
415
  switch (serviceP) {
417
416
  case "dbs_read": {
418
417
  try {
419
- const ret = {
420
- code: 1,
421
- data: await read_dbs_pouch(db),
422
- };
423
- return success_callback(ret);
418
+ // const ret = {
419
+ // code: 1,
420
+ // data: await read_dbs_pouch(db),
421
+ // };
422
+ return success_callback(await read_dbs_pouch(db));
424
423
  } catch (err) {
425
424
  return error_callback(err);
426
425
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.476",
3
+ "version": "1.3.478",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {