@xuda.io/xuda-worker-bundle-min 1.3.355 → 1.3.357

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 +5 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -371,7 +371,8 @@ func.common.db = async function (
371
371
  const doc = await db.get(rep_id);
372
372
  if (doc.stat < 3) throw "replication not ready";
373
373
  const json = await func.db.pouch[serviceP](SESSION_ID, dataP);
374
- return success_callback(json, true);
374
+ // return success_callback(json, true);
375
+ return json;
375
376
  } catch (err) {
376
377
  // try {
377
378
  const json = await perform_rpi_request(serviceP);
@@ -383,9 +384,11 @@ func.common.db = async function (
383
384
  stat: 1,
384
385
  ts: Date.now(),
385
386
  });
387
+ func.db.pouch.set_db_replication_from_server(rep_id);
386
388
  } catch (err) {}
387
389
  }
388
- return success_callback(json, true);
390
+ return json;
391
+ // return success_callback(json, true);
389
392
  // } catch (err) {
390
393
  // return error_callback(err);
391
394
  // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.355",
3
+ "version": "1.3.357",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {