@xuda.io/account_module 1.2.327 → 1.2.329

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
@@ -1561,13 +1561,14 @@ export const get_user_name = async function (uid) {
1561
1561
 
1562
1562
  export const update_contacts_with_account_changes = async function (uid, changes = []) {
1563
1563
  try {
1564
+ if (!changes.length) return;
1564
1565
  const ret = await db_module.get_couch_doc('xuda_accounts', uid);
1565
1566
  var account_obj = ret.data;
1566
1567
  account_obj.ts = Date.now();
1567
1568
 
1568
1569
  // update all uid contacts with the new avatar
1569
1570
  const opt = {
1570
- selector: { contact_uid: db_doc._id, docType: 'contact' },
1571
+ selector: { contact_uid: uid, docType: 'contact' },
1571
1572
  };
1572
1573
  debugger;
1573
1574
  var contacts = await db_module.find_couch_query('xuda_contacts', opt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.327",
3
+ "version": "1.2.329",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {