@xuda.io/account_module 1.2.2081 → 1.2.2083

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2814,7 +2814,8 @@ export const get_pending_share_profile_in = async function (uid, _id) {
2814
2814
  const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
2815
2815
 
2816
2816
  for await (let e of requests_from_res.docs) {
2817
- let doc = await db_module.get_couch_doc_native('xuda_accounts', e.share_item_id);
2817
+ const account_profile_info = await get_active_account_profile_info(e.team_req_from_uid);
2818
+ let doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, e.share_item_id);
2818
2819
 
2819
2820
  doc.shared_from_uid = e.team_req_from_uid;
2820
2821
  doc.pending = true;
@@ -2971,7 +2972,6 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2971
2972
  };
2972
2973
 
2973
2974
  export const get_account_profiles = async function (req) {
2974
- debugger;
2975
2975
  const { _id, uid, profile_name, limit, skip, bookmark, search, filter_type = 'all', profile_id, active_tab } = req;
2976
2976
  const app_id = await get_account_default_project_id(uid);
2977
2977
  if (_id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2081",
3
+ "version": "1.2.2083",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {