@xuda.io/account_module 1.2.328 → 1.2.330

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
@@ -1568,11 +1568,14 @@ export const update_contacts_with_account_changes = async function (uid, changes
1568
1568
 
1569
1569
  // update all uid contacts with the new avatar
1570
1570
  const opt = {
1571
- selector: { contact_uid: db_doc._id, docType: 'contact' },
1571
+ selector: { contact_uid: uid, docType: 'contact' },
1572
1572
  };
1573
1573
  debugger;
1574
1574
  var contacts = await db_module.find_couch_query('xuda_contacts', opt);
1575
1575
  for (let doc of contacts.docs) {
1576
+ if (changes.includes('profile_picture')) {
1577
+ doc.profile_avatar = db_doc.account_info.profile_avatar;
1578
+ }
1576
1579
  doc.profile_avatar = db_doc.account_info.profile_avatar;
1577
1580
  console.log(doc);
1578
1581
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.328",
3
+ "version": "1.2.330",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {