@xuda.io/account_module 1.2.327 → 1.2.328

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 +1 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1561,6 +1561,7 @@ 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();
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.328",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {