@xuda.io/account_module 1.2.820 → 1.2.822

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
@@ -1360,7 +1360,6 @@ function formatPhoneWithFlag(phoneString, country = 'US') {
1360
1360
  }
1361
1361
 
1362
1362
  export const get_contact_info = async function (uid, contact_doc, _id) {
1363
- debugger;
1364
1363
  const ai_module = await import(`${module_path}/ai_module/index.mjs`);
1365
1364
  let doc = contact_doc;
1366
1365
  if (_id) {
@@ -1519,8 +1518,9 @@ export const get_pending_share_contact_in = async function (uid, _id) {
1519
1518
 
1520
1519
  const get_user_contact = async function (uid, uid_query) {
1521
1520
  const account_info = (await get_account_name({ uid_query })).data;
1522
- let doc = { docType: 'contact', account_type: account_info.account_type, date_created: Date.now(), email: account_info.email, my_contact: uid === uid_query, contact_uid: uid_query };
1521
+ let doc = { docType: 'contact', account_type: account_info.account_type, date_created: Date.now(), email: account_info.email, my_contact: uid === uid_query, contact_uid: uid_query, username: account_info.username };
1523
1522
 
1523
+ debugger;
1524
1524
  doc.name = account_info?.account_type === 'business' ? account_info.business_name : `${account_info.first_name} ${account_info.last_name}`;
1525
1525
  doc.profile_avatar = account_info.profile_avatar;
1526
1526
  doc.profile_picture = account_info.profile_picture;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.820",
3
+ "version": "1.2.822",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {