@xuda.io/account_module 1.2.2129 → 1.2.2131

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.
Files changed (2) hide show
  1. package/index.mjs +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2841,9 +2841,9 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2841
2841
  }
2842
2842
  return colour;
2843
2843
  };
2844
- const get_members = async (uid) => {
2844
+ const get_members = async (uid, share_item_id) => {
2845
2845
  let members = [];
2846
- let selector = { docType: 'team_request', team_req_stat: 3, share_item_id: doc._id, access_type: 'account_profile', team_req_from_uid: uid };
2846
+ let selector = { docType: 'team_request', team_req_stat: 3, share_item_id, access_type: 'account_profile', team_req_from_uid: uid };
2847
2847
  let ret = await db_module.find_couch_query('xuda_team', { selector });
2848
2848
  for (const req_obj of ret.docs) {
2849
2849
  const account_info_ret = await get_account_name({ uid_query: req_obj.team_req_to_uid });
@@ -2881,7 +2881,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2881
2881
  doc.card_background = `linear-gradient(145deg, #242480 0%, #060619 100%)`;
2882
2882
  // doc.border = get_contact_border(doc);
2883
2883
 
2884
- doc.members = await get_members(doc.shared_from_uid || doc.uid);
2884
+ doc.members = await get_members(doc.shared_from_uid || doc.uid, doc.share_item_id || doc._id);
2885
2885
  const user_account_profiles = await get_user_account_profiles();
2886
2886
 
2887
2887
  const usage_ret = await get_account_ai_usage({ uid: doc.shared_from_uid || doc.uid });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2129",
3
+ "version": "1.2.2131",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {