@xuda.io/xuda-dbs-plugin-xuda 1.0.14 → 1.0.15
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.mjs +6 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
@@ -156,6 +156,12 @@ const get_index_json = async function (docInP, table_obj) {
|
|
156
156
|
}
|
157
157
|
};
|
158
158
|
|
159
|
+
const find_item_by_key_root = function (arr, key, val) {
|
160
|
+
return _.find(arr, function (e) {
|
161
|
+
return e[key] === val;
|
162
|
+
});
|
163
|
+
};
|
164
|
+
|
159
165
|
export const Create = async (_, e, db, app_id_reference, table_obj) => {
|
160
166
|
const batch = async function () {
|
161
167
|
var docs = [];
|
package/package.json
CHANGED