@xuda.io/xuda-worker-bundle-min 1.3.419 → 1.3.420
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 +22 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -385,7 +385,8 @@ func.common.db = async function (
|
|
|
385
385
|
return await func.common.perform_rpi_request(
|
|
386
386
|
SESSION_ID,
|
|
387
387
|
serviceP,
|
|
388
|
-
opt
|
|
388
|
+
opt,
|
|
389
|
+
data
|
|
389
390
|
);
|
|
390
391
|
}
|
|
391
392
|
return await func.db.pouch[serviceP](SESSION_ID, dataP);
|
|
@@ -403,7 +404,8 @@ func.common.db = async function (
|
|
|
403
404
|
const json = await func.common.perform_rpi_request(
|
|
404
405
|
SESSION_ID,
|
|
405
406
|
serviceP,
|
|
406
|
-
opt
|
|
407
|
+
opt,
|
|
408
|
+
data
|
|
407
409
|
);
|
|
408
410
|
if (json.opt) {
|
|
409
411
|
try {
|
|
@@ -433,7 +435,12 @@ func.common.db = async function (
|
|
|
433
435
|
await db.get(dataP.row_id);
|
|
434
436
|
return await func.db.pouch[serviceP](SESSION_ID, dataP);
|
|
435
437
|
} catch (err) {
|
|
436
|
-
return await func.common.perform_rpi_request(
|
|
438
|
+
return await func.common.perform_rpi_request(
|
|
439
|
+
SESSION_ID,
|
|
440
|
+
serviceP,
|
|
441
|
+
opt,
|
|
442
|
+
data
|
|
443
|
+
);
|
|
437
444
|
}
|
|
438
445
|
};
|
|
439
446
|
const create_dbs_pouch = async function (db) {
|
|
@@ -441,7 +448,12 @@ func.common.db = async function (
|
|
|
441
448
|
try {
|
|
442
449
|
return await func.db.pouch[serviceP](SESSION_ID, dataP);
|
|
443
450
|
} catch (err) {
|
|
444
|
-
return await func.common.perform_rpi_request(
|
|
451
|
+
return await func.common.perform_rpi_request(
|
|
452
|
+
SESSION_ID,
|
|
453
|
+
serviceP,
|
|
454
|
+
opt,
|
|
455
|
+
data
|
|
456
|
+
);
|
|
445
457
|
}
|
|
446
458
|
};
|
|
447
459
|
|
|
@@ -495,7 +507,8 @@ func.common.db = async function (
|
|
|
495
507
|
const json = await func.common.perform_rpi_request(
|
|
496
508
|
SESSION_ID,
|
|
497
509
|
serviceP,
|
|
498
|
-
opt
|
|
510
|
+
opt,
|
|
511
|
+
data
|
|
499
512
|
);
|
|
500
513
|
return success_callback(json, true);
|
|
501
514
|
} catch (err) {
|
|
@@ -508,7 +521,8 @@ func.common.db = async function (
|
|
|
508
521
|
const json = await func.common.perform_rpi_request(
|
|
509
522
|
SESSION_ID,
|
|
510
523
|
serviceP,
|
|
511
|
-
opt
|
|
524
|
+
opt,
|
|
525
|
+
data
|
|
512
526
|
);
|
|
513
527
|
return success_callback(json, true);
|
|
514
528
|
} catch (err) {
|
|
@@ -1048,7 +1062,8 @@ func.api.call_api_program = async function (prog_id, params) {
|
|
|
1048
1062
|
func.common.perform_rpi_request = async function (
|
|
1049
1063
|
SESSION_ID,
|
|
1050
1064
|
serviceP,
|
|
1051
|
-
opt = {}
|
|
1065
|
+
opt = {},
|
|
1066
|
+
data
|
|
1052
1067
|
) {
|
|
1053
1068
|
var url = func.common.get_url(SESSION_ID, "rpi", "");
|
|
1054
1069
|
var _session = SESSION_OBJ[SESSION_ID];
|