@xuda.io/account_module 1.2.334 → 1.2.336

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 +4 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1582,7 +1582,10 @@ export const update_contacts_with_account_changes = async function (uid, changes
1582
1582
  if (changes.includes('email')) {
1583
1583
  doc.email = account_obj.account_info.email;
1584
1584
  }
1585
- doc.profile_avatar = db_doc.account_info.profile_avatar;
1585
+ if (changes.includes('first_name') || changes.includes('last_name')) {
1586
+ doc.name = `${account_obj.account_info.first_name} ${account_obj.account_info.last_name}`;
1587
+ }
1588
+
1586
1589
  console.log(doc);
1587
1590
  }
1588
1591
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.334",
3
+ "version": "1.2.336",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {