@xuda.io/account_module 1.2.1064 → 1.2.1066

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2497,8 +2497,9 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2497
2497
  if (account_info_ret.code < 0) {
2498
2498
  return;
2499
2499
  }
2500
-
2501
- doc.profile_avatar = account_info_ret.data.profile_avatar;
2500
+ if (!doc.profile_avatar) {
2501
+ doc.profile_avatar = account_info_ret.data.profile_avatar;
2502
+ }
2502
2503
 
2503
2504
  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}`;
2504
2505
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1064",
3
+ "version": "1.2.1066",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {