@xuda.io/xuda-worker-bundle-min 1.3.1148 → 1.3.1150
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
|
@@ -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
|
-
|
|
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.
|
|
1128
|
+
return await api_utils.dbs_create(table_id, row_id, data, cb);
|
|
1128
1129
|
};
|
|
1129
|
-
func.api.
|
|
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.
|
|
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];
|