@xuda.io/xuda-worker-bundle-min 1.3.1149 → 1.3.1151

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.
Files changed (2) hide show
  1. package/index.js +6 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1109,7 +1109,8 @@ func.api.call_system_api = async function (api_method, payload) {
1109
1109
 
1110
1110
  return await api_utils.call_system_api(api_method, payload, null);
1111
1111
  };
1112
- func.api.dbs_read = async function (table_id, selector, fields, sort, limit, skip, cb) {
1112
+
1113
+ func.api.dbs_create = async function (table_id, data, cb) {
1113
1114
  const SESSION_ID = Object.keys(SESSION_OBJ)[0];
1114
1115
  const api_utils = await func.common.get_module(
1115
1116
  SESSION_ID,
@@ -1124,9 +1125,9 @@ func.api.dbs_read = async function (table_id, selector, fields, sort, limit, ski
1124
1125
  }
1125
1126
  );
1126
1127
 
1127
- return await api_utils.dbs_read(table_id, selector, fields, sort, limit, skip, cb);
1128
+ return await api_utils.dbs_create(table_id, row_id, data, cb);
1128
1129
  };
1129
- func.api.dbs_create = async function (table_id, data, cb) {
1130
+ func.api.dbs_read = async function (table_id, selector, fields, sort, limit, skip, cb) {
1130
1131
  const SESSION_ID = Object.keys(SESSION_OBJ)[0];
1131
1132
  const api_utils = await func.common.get_module(
1132
1133
  SESSION_ID,
@@ -1141,7 +1142,7 @@ func.api.dbs_create = async function (table_id, data, cb) {
1141
1142
  }
1142
1143
  );
1143
1144
 
1144
- return await api_utils.dbs_create(table_id, row_id, data, cb);
1145
+ return await api_utils.dbs_read(table_id, selector, fields, sort, limit, skip, cb);
1145
1146
  };
1146
1147
  func.api.dbs_update = async function (table_id, row_id, data) {
1147
1148
  const SESSION_ID = Object.keys(SESSION_OBJ)[0];
@@ -8810,7 +8811,7 @@ func.events.execute = async function (
8810
8811
  },
8811
8812
  batch: async function () {
8812
8813
  const result = await this.get_data();
8813
- debugger
8814
+
8814
8815
  // await set_outputField(SESSION_ID, elementP, triggerP, functionP, dsSessionP, result);
8815
8816
  return result
8816
8817
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.1149",
3
+ "version": "1.3.1151",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {