@xuda.io/xuda-worker-bundle 1.3.1256 → 1.3.1258
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 +11 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4153,14 +4153,14 @@ func.datasource.update = async function (
|
|
|
4153
4153
|
}
|
|
4154
4154
|
}
|
|
4155
4155
|
|
|
4156
|
-
if (!
|
|
4156
|
+
if (!fieldComputed_id) return
|
|
4157
4157
|
|
|
4158
4158
|
|
|
4159
4159
|
// iterate ds rows
|
|
4160
4160
|
for (const row of _ds.data_feed?.rows || []) {
|
|
4161
4161
|
// iterate row fields
|
|
4162
4162
|
for (const [key, val] of Object.entries(row)) {
|
|
4163
|
-
if (key !==
|
|
4163
|
+
if (key !== fieldComputed_id) continue
|
|
4164
4164
|
try {
|
|
4165
4165
|
|
|
4166
4166
|
let ret = await func.expression.get(
|
|
@@ -4172,8 +4172,15 @@ func.datasource.update = async function (
|
|
|
4172
4172
|
);
|
|
4173
4173
|
|
|
4174
4174
|
const row_idx = func.common.find_ROWID_idx(_ds, row._ROWID);
|
|
4175
|
-
|
|
4176
|
-
|
|
4175
|
+
if (_ds.data_feed.rows[row_idx][fieldComputed_id] !== ret.result) {
|
|
4176
|
+
_ds.data_feed.rows[row_idx][fieldComputed_id] = ret.result;
|
|
4177
|
+
if (!fields_changed.includes(fieldComputed_id)) {
|
|
4178
|
+
fields_changed.push(fieldComputed_id)
|
|
4179
|
+
}
|
|
4180
|
+
if (!datasource_changed.includes(dsSession)) {
|
|
4181
|
+
datasource_changed.push(dsSession)
|
|
4182
|
+
}
|
|
4183
|
+
}
|
|
4177
4184
|
} catch (err) {
|
|
4178
4185
|
console.error(err);
|
|
4179
4186
|
}
|
|
@@ -4182,9 +4189,6 @@ func.datasource.update = async function (
|
|
|
4182
4189
|
}
|
|
4183
4190
|
await set_fieldComputed_dependencies(dsNo, field_id, dsSession)
|
|
4184
4191
|
}
|
|
4185
|
-
debugger
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
4192
|
|
|
4189
4193
|
}
|
|
4190
4194
|
|