@xuda.io/account_module 1.2.860 → 1.2.862
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 +1 -7
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -852,7 +852,7 @@ export const get_ssh_keys = async function (req) {
|
|
|
852
852
|
};
|
|
853
853
|
|
|
854
854
|
if (_id) {
|
|
855
|
-
opt._id = _id;
|
|
855
|
+
opt.selector._id = _id;
|
|
856
856
|
}
|
|
857
857
|
|
|
858
858
|
var ret = await db_module.find_couch_query('xuda_ssh_keys', opt);
|
|
@@ -1551,12 +1551,6 @@ const get_user_contact = async function (uid, uid_query) {
|
|
|
1551
1551
|
export const get_contacts = async function (req) {
|
|
1552
1552
|
const { _id, uid, name, limit, skip, bookmark, search, filter_type = 'all', contact_id } = req;
|
|
1553
1553
|
|
|
1554
|
-
// if (_id) {
|
|
1555
|
-
// let doc_ret = await get_ai_doc({ _id, uid });
|
|
1556
|
-
|
|
1557
|
-
// return doc_ret;
|
|
1558
|
-
// }
|
|
1559
|
-
|
|
1560
1554
|
if (_id) {
|
|
1561
1555
|
let data = await db_module.get_couch_doc('xuda_contacts', _id);
|
|
1562
1556
|
return data;
|