@xuda.io/xuda-worker-bundle-min 1.3.355 → 1.3.356
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 -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);
|
|
@@ -385,7 +386,8 @@ func.common.db = async function (
|
|
|
385
386
|
});
|
|
386
387
|
} catch (err) {}
|
|
387
388
|
}
|
|
388
|
-
return
|
|
389
|
+
return json;
|
|
390
|
+
// return success_callback(json, true);
|
|
389
391
|
// } catch (err) {
|
|
390
392
|
// return error_callback(err);
|
|
391
393
|
// }
|