@xuda.io/account_module 1.2.755 → 1.2.756

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1480,7 +1480,7 @@ export const get_pending_share_contact_in = async function (uid, _id) {
1480
1480
 
1481
1481
  const get_user_contact = async function (uid, uid_query) {
1482
1482
  const account_info = await get_account_name({ uid_query }).data;
1483
- let doc = { docType: 'contact', date_created: Date.now(), email: [account_info.email], my_contact: uid === uid_query, contact_uid: uid_query };
1483
+ 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 };
1484
1484
 
1485
1485
  doc.name = account_info?.account_type === 'business' ? doc.business_name : `${account_info.first_name} ${account_info.last_name}`;
1486
1486
  doc.profile_avatar = account_info.profile_avatar;
@@ -1490,6 +1490,7 @@ const get_user_contact = async function (uid, uid_query) {
1490
1490
  doc.auto_respond = account_info.auto_respond;
1491
1491
  doc.auto_respond_mode = account_info.auto_respond_mode;
1492
1492
  doc.auto_respond_agents = account_info.auto_respond_agents;
1493
+
1493
1494
  return doc;
1494
1495
  };
1495
1496
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.755",
3
+ "version": "1.2.756",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {