@xuda.io/xuda-worker-bundle-min 1.3.2319 → 1.3.2321
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 +18 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3191,13 +3191,24 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
3191
3191
|
}
|
|
3192
3192
|
|
|
3193
3193
|
if (field_id === 'watcher') {
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3194
|
+
if (!server_datasource_changes[dataSource]) {
|
|
3195
|
+
server_datasource_changes[dataSource] = {};
|
|
3196
|
+
}
|
|
3197
|
+
if (!server_datasource_changes[dataSource][record_id]) {
|
|
3198
|
+
server_datasource_changes[dataSource][record_id] = {};
|
|
3199
|
+
}
|
|
3200
|
+
server_datasource_changes[dataSource][record_id][field_id] = value;
|
|
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
|
+
}
|
|
3201
3212
|
|
|
3202
3213
|
await func.UI.screen.refresh_screen(
|
|
3203
3214
|
SESSION_ID,
|