@xuda.io/xuda-worker-bundle-min 1.3.477 → 1.3.479

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 +7 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -334,14 +334,14 @@ func.common.db = async function (
334
334
  opt,
335
335
  data
336
336
  );
337
- if (json.opt) {
337
+ if (json.data.opt) {
338
338
  try {
339
339
  try {
340
340
  await db.get(rep_id);
341
341
  } catch (err) {
342
342
  await db.put({
343
343
  _id: rep_id,
344
- selector: json.opt.selector,
344
+ selector: json.data.opt.selector,
345
345
  stat: 1,
346
346
  ts: Date.now(),
347
347
  docType: "rep_request",
@@ -415,11 +415,11 @@ func.common.db = async function (
415
415
  switch (serviceP) {
416
416
  case "dbs_read": {
417
417
  try {
418
- const ret = {
419
- code: 1,
420
- data: await read_dbs_pouch(db),
421
- };
422
- 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));
423
423
  } catch (err) {
424
424
  return error_callback(err);
425
425
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.477",
3
+ "version": "1.3.479",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {