@xuda.io/account_module 1.2.1070 → 1.2.1072

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 +4 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2494,12 +2494,11 @@ export const get_pending_share_profile_in = async function (uid, _id) {
2494
2494
  const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
2495
2495
 
2496
2496
  for await (let e of requests_from_res.docs) {
2497
- // let doc = { docType: 'contact', date_created: e.team_req_date, email: [e.sender_account_info.email], name: '', pending: true, contact_uid: e.team_req_from_uid, team_req_id: e._id };
2498
- let doc = await db_module.get_couch_doc_native('xuda_contacts', e.share_item_id);
2499
- delete doc.contact_mood_level;
2497
+ let doc = await db_module.get_couch_doc_native('xuda_accounts', e.share_item_id);
2498
+
2500
2499
  doc.shared_from_uid = e.team_req_from_uid;
2501
2500
  doc.pending = true;
2502
- doc = await get_contact_info(uid, doc);
2501
+ doc = await get_account_profile_info(uid, doc);
2503
2502
  doc.team_req_id = e._id;
2504
2503
 
2505
2504
  docs.push(doc);
@@ -2689,7 +2688,7 @@ export const get_account_profiles = async function (req) {
2689
2688
  if (!profile_id) {
2690
2689
  if (filter_type === 'pending') {
2691
2690
  ////// FROM - IN
2692
- shared_from.docs = await get_pending_share_contact_in(uid);
2691
+ shared_from.docs = await get_pending_share_profile_in(uid);
2693
2692
  shared_from.total_docs = shared_from.docs.length;
2694
2693
  }
2695
2694
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1070",
3
+ "version": "1.2.1072",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {