@xuda.io/xuda-worker-bundle 1.3.1255 → 1.3.1256
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 +5 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4138,7 +4138,7 @@ func.datasource.update = async function (
|
|
|
4138
4138
|
dsSession
|
|
4139
4139
|
);
|
|
4140
4140
|
// find if field is computed
|
|
4141
|
-
let
|
|
4141
|
+
let fieldComputed_propExpressions, fieldComputed_id
|
|
4142
4142
|
for await (const val of _progFields) {
|
|
4143
4143
|
|
|
4144
4144
|
const fieldId = val.data.field_id;
|
|
@@ -4148,11 +4148,12 @@ func.datasource.update = async function (
|
|
|
4148
4148
|
|
|
4149
4149
|
const _propExpressions = val.props?.propExpressions?.fieldValue
|
|
4150
4150
|
if (_propExpressions && JSON.stringify(_propExpressions).includes(field_id)) {
|
|
4151
|
-
|
|
4151
|
+
fieldComputed_propExpressions = _propExpressions
|
|
4152
|
+
fieldComputed_id = fieldId
|
|
4152
4153
|
}
|
|
4153
4154
|
}
|
|
4154
4155
|
|
|
4155
|
-
if (!
|
|
4156
|
+
if (!fieldComputed_propExpressions) return
|
|
4156
4157
|
|
|
4157
4158
|
|
|
4158
4159
|
// iterate ds rows
|
|
@@ -4164,7 +4165,7 @@ func.datasource.update = async function (
|
|
|
4164
4165
|
|
|
4165
4166
|
let ret = await func.expression.get(
|
|
4166
4167
|
SESSION_ID,
|
|
4167
|
-
|
|
4168
|
+
fieldComputed_propExpressions,
|
|
4168
4169
|
dsNo,
|
|
4169
4170
|
"update",
|
|
4170
4171
|
row._ROWID
|