@xuda.io/xuda-worker-bundle-min 1.3.673 → 1.3.675
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 +29 -31
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5133,9 +5133,9 @@ func.utils.job_worker = function (session_id) {
|
|
|
5133
5133
|
if (
|
|
5134
5134
|
!_session.WORKER_OBJ.jobs[_session.WORKER_OBJ.stat] ||
|
|
5135
5135
|
_session.WORKER_OBJ.jobs[_session.WORKER_OBJ.stat].typeP ===
|
|
5136
|
-
|
|
5136
|
+
"system_interval" ||
|
|
5137
5137
|
_session.WORKER_OBJ.jobs[_session.WORKER_OBJ.stat].typeP ===
|
|
5138
|
-
|
|
5138
|
+
"system event"
|
|
5139
5139
|
) {
|
|
5140
5140
|
return;
|
|
5141
5141
|
}
|
|
@@ -5501,10 +5501,10 @@ func.utils.ws_worker.functions = {
|
|
|
5501
5501
|
if (show_log)
|
|
5502
5502
|
console.log(
|
|
5503
5503
|
"DATASOURCE EXECUTION DONE " +
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5504
|
+
ret.dsSessionP +
|
|
5505
|
+
" " +
|
|
5506
|
+
_session.DS_GLB[ret.dsSessionP]?.tree_obj?.menuName ||
|
|
5507
|
+
"" + " SESSION_ID: " + SESSION_ID,
|
|
5508
5508
|
APP_OBJ[_session.app_id].app_name
|
|
5509
5509
|
);
|
|
5510
5510
|
var obj = func.utils.clean_returned_datasource(SESSION_ID, ret.dsSessionP);
|
|
@@ -5856,9 +5856,9 @@ func.utils.ws_worker.functions = {
|
|
|
5856
5856
|
if (show_log)
|
|
5857
5857
|
console.log(
|
|
5858
5858
|
"DATASOURCE RETURN TO DATASOURCE " +
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5859
|
+
params.dssession +
|
|
5860
|
+
" SESSION_ID: " +
|
|
5861
|
+
SESSION_ID,
|
|
5862
5862
|
APP_OBJ[_session.app_id].app_name
|
|
5863
5863
|
);
|
|
5864
5864
|
_session.DS_GLB[params.dssession].v.onscreen_events_active =
|
|
@@ -5871,9 +5871,9 @@ func.utils.ws_worker.functions = {
|
|
|
5871
5871
|
if (show_log)
|
|
5872
5872
|
console.log(
|
|
5873
5873
|
"DATASOURCE RETURN TO DATASOURCE DONE " +
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5874
|
+
DS +
|
|
5875
|
+
" SESSION_ID: " +
|
|
5876
|
+
SESSION_ID,
|
|
5877
5877
|
APP_OBJ[_session.app_id].app_name
|
|
5878
5878
|
);
|
|
5879
5879
|
var obj = func.utils.clean_returned_datasource(SESSION_ID, DS);
|
|
@@ -5901,9 +5901,9 @@ func.utils.ws_worker.functions = {
|
|
|
5901
5901
|
if (show_log)
|
|
5902
5902
|
console.log(
|
|
5903
5903
|
"UPDATE CHANGE EVENT DONE TO DATASOURCE " +
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5904
|
+
params.dssession +
|
|
5905
|
+
" SESSION_ID: " +
|
|
5906
|
+
SESSION_ID,
|
|
5907
5907
|
APP_OBJ[_session.app_id].app_name
|
|
5908
5908
|
);
|
|
5909
5909
|
ds.eventChangesResults_done = true;
|
|
@@ -5915,9 +5915,9 @@ func.utils.ws_worker.functions = {
|
|
|
5915
5915
|
if (show_log)
|
|
5916
5916
|
console.log(
|
|
5917
5917
|
"RETURN FROM DB_QUERY " +
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5918
|
+
params.dssession +
|
|
5919
|
+
" SESSION_ID: " +
|
|
5920
|
+
SESSION_ID,
|
|
5921
5921
|
APP_OBJ[_session.app_id].app_name
|
|
5922
5922
|
);
|
|
5923
5923
|
debugger;
|
|
@@ -5934,9 +5934,9 @@ func.utils.ws_worker.functions = {
|
|
|
5934
5934
|
if (show_log)
|
|
5935
5935
|
console.log(
|
|
5936
5936
|
"RETURN FROM SAVE_DATA " +
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5937
|
+
params.dssession +
|
|
5938
|
+
" SESSION_ID: " +
|
|
5939
|
+
SESSION_ID,
|
|
5940
5940
|
APP_OBJ[_session.app_id].app_name
|
|
5941
5941
|
);
|
|
5942
5942
|
func.utils.get_callback_queue(SESSION_ID, params.callback_id)();
|
|
@@ -6038,7 +6038,7 @@ func.utils.ws_worker.functions = {
|
|
|
6038
6038
|
const couch = await __.rpi.get_app_couch(req.body.app_id);
|
|
6039
6039
|
const session_doc = await couch.get(req.body.app_token);
|
|
6040
6040
|
ret.session_stat = session_doc.stat;
|
|
6041
|
-
} catch (error) {}
|
|
6041
|
+
} catch (error) { }
|
|
6042
6042
|
}
|
|
6043
6043
|
} catch (error) {
|
|
6044
6044
|
debugger;
|
|
@@ -6163,15 +6163,13 @@ func.utils.get_drive_url = function (SESSION_ID, val, wrap) {
|
|
|
6163
6163
|
: "xuda.io";
|
|
6164
6164
|
}
|
|
6165
6165
|
|
|
6166
|
-
let url = `https://${_domain}/workspace-drive/${
|
|
6167
|
-
|
|
6168
|
-
}/`;
|
|
6166
|
+
let url = `https://${_domain}/workspace-drive/${_app.is_deployment ? _app.app_datacenter_id : _app.app_id_reference
|
|
6167
|
+
}/`;
|
|
6169
6168
|
|
|
6170
|
-
const FILE_REPLACE_URL = `${url}${val}?
|
|
6169
|
+
const FILE_REPLACE_URL = `${url}${val}?app_token=${_session.app_token}`;
|
|
6171
6170
|
|
|
6172
|
-
let match = `drv_${
|
|
6173
|
-
|
|
6174
|
-
}_[0-9a-f\\-]+\\.[a-zA-Z0-9]+`;
|
|
6171
|
+
let match = `drv_${_app.app_replicate || _session.app_id
|
|
6172
|
+
}_[0-9a-f\\-]+\\.[a-zA-Z0-9]+`;
|
|
6175
6173
|
|
|
6176
6174
|
let pat = new RegExp(match, "g");
|
|
6177
6175
|
let URLString = fileString.replace(pat, function (match, idx) {
|
|
@@ -6549,8 +6547,8 @@ func.utils.alerts.execute = function (
|
|
|
6549
6547
|
alert_type === "success"
|
|
6550
6548
|
? "log"
|
|
6551
6549
|
: alert_type === "warning"
|
|
6552
|
-
|
|
6553
|
-
|
|
6550
|
+
? "warn"
|
|
6551
|
+
: alert_type
|
|
6554
6552
|
](alert_type, title, message);
|
|
6555
6553
|
ALERT_IS_ACTIVE = false;
|
|
6556
6554
|
break;
|