@xuda.io/account_module 1.2.1071 → 1.2.1073

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 +1 -32
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2522,37 +2522,6 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2522
2522
  doc.profile_avatar = account_info_ret.data.profile_avatar;
2523
2523
  }
2524
2524
 
2525
- // doc.name = account_info_ret.data?.account_type === 'business' ? account_info_ret.data.business_name : `${account_info_ret.data.first_name} ${account_info_ret.data.last_name}`;
2526
-
2527
- // if (account_info_ret.data.phone_number) {
2528
- // try {
2529
- // doc.phone_number = formatPhoneWithFlag(account_info_ret.data.phone_number, account_info_ret.data.country);
2530
- // } catch (err) {
2531
- // console.error(err);
2532
- // doc.phone_number = account_info_ret.data.phone_number;
2533
- // }
2534
- // }
2535
-
2536
- // if (doc.team_req_id) {
2537
- // try {
2538
- // const req_doc = await db_module.get_couch_doc_native('xuda_team', doc.team_req_id);
2539
- // doc.connection_stat = req_doc.team_req_stat;
2540
- // doc.connection_type = req_doc.access_type;
2541
- // if (doc.connection_type === 'contact_connection') {
2542
- // doc.friend_since = req_doc.team_req_date;
2543
- // }
2544
- // } catch (err) {
2545
- // if (err.message === 'deleted') {
2546
- // try {
2547
- // let contact_doc = await db_module.get_couch_doc_native('xuda_contacts', doc._id);
2548
- // contact_doc.team_req_id = '';
2549
- // await db_module.save_couch_doc('xuda_contacts', contact_doc);
2550
- // } catch (error) {}
2551
- // }
2552
- // doc.connection_stat = 0;
2553
- // }
2554
- // }
2555
-
2556
2525
  const get_pattern = async function (doc) {
2557
2526
  let ret = `default-pattern.png`;
2558
2527
 
@@ -2688,7 +2657,7 @@ export const get_account_profiles = async function (req) {
2688
2657
  if (!profile_id) {
2689
2658
  if (filter_type === 'pending') {
2690
2659
  ////// FROM - IN
2691
- shared_from.docs = await get_pending_share_contact_in(uid);
2660
+ shared_from.docs = await get_pending_share_profile_in(uid);
2692
2661
  shared_from.total_docs = shared_from.docs.length;
2693
2662
  }
2694
2663
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1071",
3
+ "version": "1.2.1073",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {