@xuda.io/account_module 1.2.785 → 1.2.787

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 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1458,6 +1458,7 @@ export const get_pending_contact_in = async function (uid, _id) {
1458
1458
  if (account_info_ret.code < 0) {
1459
1459
  continue; // throw new Error(`account ${contact_uid} not found`);
1460
1460
  }
1461
+ doc.avatar_source = account_info_ret.data.avatar_source;
1461
1462
  doc.profile_avatar = account_info_ret.data.profile_avatar;
1462
1463
  doc.name = `${account_info_ret.data.first_name} ${account_info_ret.data.last_name}`;
1463
1464
  }
@@ -1498,6 +1499,7 @@ const get_user_contact = async function (uid, uid_query) {
1498
1499
  doc.name = account_info?.account_type === 'business' ? account_info.business_name : `${account_info.first_name} ${account_info.last_name}`;
1499
1500
  doc.profile_avatar = account_info.profile_avatar;
1500
1501
  doc.profile_picture = account_info.profile_picture;
1502
+ doc.avatar_source = account_info.data.avatar_source;
1501
1503
  doc.card_background = get_contact_background(doc);
1502
1504
  doc.icon_pattern = await get_contact_pattern(doc);
1503
1505
  doc.border = get_contact_border(doc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.785",
3
+ "version": "1.2.787",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {