@xuda.io/account_module 1.2.1201 → 1.2.1202
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 +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1600,6 +1600,7 @@ const get_user_contact = async function (uid, uid_query) {
|
|
|
1600
1600
|
export const get_contacts = async function (req) {
|
|
1601
1601
|
const { _id, uid, name, limit, skip, bookmark, search, filter_type = 'all', contact_id } = req;
|
|
1602
1602
|
|
|
1603
|
+
const account_profile_info = await get_active_account_profile_info(uid);
|
|
1603
1604
|
if (_id) {
|
|
1604
1605
|
let data = await db_module.get_couch_doc('xuda_contacts', _id);
|
|
1605
1606
|
return data;
|
|
@@ -1609,7 +1610,7 @@ export const get_contacts = async function (req) {
|
|
|
1609
1610
|
var opt = {
|
|
1610
1611
|
selector: {
|
|
1611
1612
|
docType: 'contact',
|
|
1612
|
-
uid,
|
|
1613
|
+
uid: account_profile_info.uid,
|
|
1613
1614
|
stat: { $lt: 4 },
|
|
1614
1615
|
},
|
|
1615
1616
|
limit: limit || 9999,
|