@xuda.io/xuda-worker-bundle-min 1.3.2320 → 1.3.2322
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 +12 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3190,7 +3190,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3190
3190
|
datasource_changed.push(dataSource);
|
|
3191
3191
|
}
|
|
3192
3192
|
|
|
3193
|
-
if (field_id === 'watcher') {
|
|
3193
|
+
if (!glb.IS_WORKER && field_id === 'watcher') {
|
|
3194
3194
|
if (!server_datasource_changes[dataSource]) {
|
|
3195
3195
|
server_datasource_changes[dataSource] = {};
|
|
3196
3196
|
}
|
|
@@ -3199,6 +3199,17 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3199
3199
|
}
|
|
3200
3200
|
server_datasource_changes[dataSource][record_id][field_id] = value;
|
|
3201
3201
|
|
|
3202
|
+
if (!update_local_scope_only) {
|
|
3203
|
+
const ret = await func.index.call_worker(SESSION_ID, {
|
|
3204
|
+
service: 'update_datasource_changes_from_client',
|
|
3205
|
+
data: {
|
|
3206
|
+
session_id: SESSION_ID,
|
|
3207
|
+
datasource_changes: server_datasource_changes,
|
|
3208
|
+
},
|
|
3209
|
+
id: _ds.worker_id,
|
|
3210
|
+
});
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3202
3213
|
await func.UI.screen.refresh_screen(
|
|
3203
3214
|
SESSION_ID,
|
|
3204
3215
|
klona.klona(fields_changed), // _.cloneDeep(fields_changed),
|