@xuda.io/runtime-bundle 1.0.699 → 1.0.701
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/js/xuda-runtime-bundle.js +17 -16
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +17 -16
- package/js/xuda-runtime-slim.min.es.js +17 -16
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +1 -1
- package/js/xuda-worker-bundle.js +1 -1
- package/js/xuda-worker-bundle.min.js +1 -1
- package/js/xuda_common-bundle.js +1 -1
- package/js/xuda_common-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -24460,7 +24460,7 @@ func.api.dbs_read = async function (table_id, selector, fields, sort, limit, ski
|
|
|
24460
24460
|
|
|
24461
24461
|
return await api_utils.dbs_read(table_id, selector, fields, sort, limit, skip, cb);
|
|
24462
24462
|
};
|
|
24463
|
-
func.api.dbs_update = async function (table_id, row_id, data) {
|
|
24463
|
+
func.api.dbs_update = async function (table_id, row_id, data, cb) {
|
|
24464
24464
|
const SESSION_ID = Object.keys(SESSION_OBJ)[0];
|
|
24465
24465
|
const api_utils = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|
|
24466
24466
|
func,
|
|
@@ -27714,25 +27714,26 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
|
|
|
27714
27714
|
|
|
27715
27715
|
const fx = {
|
|
27716
27716
|
update_datasource: async function () {
|
|
27717
|
-
|
|
27718
|
-
|
|
27717
|
+
if (queue_obj?.paramsP) {
|
|
27718
|
+
var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[queue_obj.dsSession];
|
|
27719
|
+
_ds.currentRecordId = queue_obj.paramsP.currentRecordId;
|
|
27719
27720
|
|
|
27720
|
-
|
|
27721
|
-
|
|
27722
|
-
};
|
|
27723
|
-
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
27724
|
-
|
|
27725
|
-
if (queue_obj.paramsP.field_id) {
|
|
27726
|
-
datasource_changes = {
|
|
27727
|
-
[_ds.dsSession]: {
|
|
27728
|
-
[_ds.currentRecordId]: {
|
|
27729
|
-
[queue_obj.paramsP.field_id]: queue_obj.paramsP.field_value,
|
|
27730
|
-
},
|
|
27731
|
-
},
|
|
27721
|
+
var datasource_changes = {
|
|
27722
|
+
[_ds.dsSession]: { [_ds.currentRecordId]: 'set' },
|
|
27732
27723
|
};
|
|
27733
27724
|
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
27734
|
-
}
|
|
27735
27725
|
|
|
27726
|
+
if (queue_obj.paramsP.field_id) {
|
|
27727
|
+
datasource_changes = {
|
|
27728
|
+
[_ds.dsSession]: {
|
|
27729
|
+
[_ds.currentRecordId]: {
|
|
27730
|
+
[queue_obj.paramsP.field_id]: queue_obj.paramsP.field_value,
|
|
27731
|
+
},
|
|
27732
|
+
},
|
|
27733
|
+
};
|
|
27734
|
+
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
27735
|
+
}
|
|
27736
|
+
}
|
|
27736
27737
|
return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
|
|
27737
27738
|
},
|
|
27738
27739
|
execute_xu_render_attributes: async function () {
|