@xuda.io/account_module 1.2.2082 → 1.2.2084

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2804,9 +2804,9 @@ export const unset_deep_research_contact = async function (req, job_id, headers)
2804
2804
  //////// PROFILES //////////////
2805
2805
 
2806
2806
  export const get_pending_share_profile_in = async function (uid, _id) {
2807
+ debugger;
2807
2808
  let docs = [];
2808
2809
  const from_opt = { selector: { docType: 'team_request', access_type: 'account_profile', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
2809
- const app_id = await get_account_default_project_id(uid);
2810
2810
 
2811
2811
  if (_id) {
2812
2812
  to_opt.selector._id = _id;
@@ -2815,7 +2815,8 @@ export const get_pending_share_profile_in = async function (uid, _id) {
2815
2815
  const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
2816
2816
 
2817
2817
  for await (let e of requests_from_res.docs) {
2818
- let doc = await db_module.get_app_couch_doc_native(app_id, e.share_item_id);
2818
+ const account_profile_info = await get_active_account_profile_info(e.team_req_from_uid);
2819
+ let doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, e.share_item_id);
2819
2820
 
2820
2821
  doc.shared_from_uid = e.team_req_from_uid;
2821
2822
  doc.pending = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2082",
3
+ "version": "1.2.2084",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {