@xuda.io/account_module 1.2.1159 → 1.2.1161
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2616,7 +2616,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2616
2616
|
let selector = { docType: 'team_request', team_req_stat: 3, share_item_id: doc._id, access_type: 'account_profile', team_req_from_uid: uid };
|
|
2617
2617
|
let ret = await db_module.find_couch_query('xuda_team', { selector });
|
|
2618
2618
|
for (const req_obj of ret.docs) {
|
|
2619
|
-
const account_info_ret = await get_account_name({ uid_query: req_obj.
|
|
2619
|
+
const account_info_ret = await get_account_name({ uid_query: req_obj.team_req_to_uid });
|
|
2620
2620
|
online = account_info_ret.data.online;
|
|
2621
2621
|
if (online) break;
|
|
2622
2622
|
}
|
|
@@ -2628,7 +2628,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2628
2628
|
doc.name = doc.profile_name;
|
|
2629
2629
|
doc.interactions = 0;
|
|
2630
2630
|
doc.chats = 0;
|
|
2631
|
-
|
|
2631
|
+
|
|
2632
2632
|
doc.online = await get_online();
|
|
2633
2633
|
|
|
2634
2634
|
const chats_ret = await ai_module.get_ai_chats({ uid, reference_id: doc._id });
|