@xuda.io/account_module 1.2.1153 → 1.2.1154
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 +7 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2611,13 +2611,19 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2611
2611
|
return ret;
|
|
2612
2612
|
};
|
|
2613
2613
|
|
|
2614
|
+
const get_online = async () => {
|
|
2615
|
+
let selector = { docType: 'team_request', team_req_stat: 3, share_item_id: doc._id, access_type: 'account_profile', team_req_from_uid: uid };
|
|
2616
|
+
let ret = await db_module.find_couch_query('xuda_team', { selector });
|
|
2617
|
+
if (ret.docs.length) throw new Error('active share found');
|
|
2618
|
+
};
|
|
2619
|
+
|
|
2614
2620
|
doc.avatar_source = account_info_ret.data.avatar_source;
|
|
2615
2621
|
doc.icon_pattern = await get_pattern(doc);
|
|
2616
2622
|
doc.name = doc.profile_name;
|
|
2617
2623
|
doc.interactions = 0;
|
|
2618
2624
|
doc.chats = 0;
|
|
2619
2625
|
|
|
2620
|
-
doc.online =
|
|
2626
|
+
doc.online = false;
|
|
2621
2627
|
|
|
2622
2628
|
const chats_ret = await ai_module.get_ai_chats({ uid, reference_id: doc._id });
|
|
2623
2629
|
|