@xuda.io/account_module 1.2.1070 → 1.2.1071

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 -4
  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);
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.1071",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {