@xuda.io/xuda-worker-bundle-min 1.3.1146 → 1.3.1147
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 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1141,7 +1141,24 @@ func.api.dbs_create = async function (table_id, data) {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
);
|
|
1143
1143
|
|
|
1144
|
-
return await api_utils.dbs_create(table_id, data);
|
|
1144
|
+
return await api_utils.dbs_create(table_id, row_id, data);
|
|
1145
|
+
};
|
|
1146
|
+
func.api.dbs_update = async function (table_id, data) {
|
|
1147
|
+
const SESSION_ID = Object.keys(SESSION_OBJ)[0];
|
|
1148
|
+
const api_utils = await func.common.get_module(
|
|
1149
|
+
SESSION_ID,
|
|
1150
|
+
"xuda-api-library.mjs",
|
|
1151
|
+
{
|
|
1152
|
+
func,
|
|
1153
|
+
glb,
|
|
1154
|
+
SESSION_OBJ,
|
|
1155
|
+
SESSION_ID,
|
|
1156
|
+
APP_OBJ,
|
|
1157
|
+
dsSession: Object.keys(SESSION_OBJ[SESSION_ID].DS_GLB).at(-1),
|
|
1158
|
+
}
|
|
1159
|
+
);
|
|
1160
|
+
|
|
1161
|
+
return await api_utils.dbs_update(table_id, row_id, data);
|
|
1145
1162
|
};
|
|
1146
1163
|
|
|
1147
1164
|
func.api.call_javascript = async function (prog_id, params, evaluate) {
|