@xuda.io/account_module 1.2.371 → 1.2.373

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 +5 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1192,9 +1192,11 @@ export const get_contacts = async function (req) {
1192
1192
  const contacts_ret = await db_module.find_couch_query('xuda_contacts', opt);
1193
1193
 
1194
1194
  for await (let doc of contacts_ret.data.docs) {
1195
- const account_ret = await get_account_name({ uid_query: contact_uid });
1196
- if (account_ret.code < 0) {
1197
- throw new Error(`account ${contact_uid} not found`);
1195
+ if (doc.contact_uid) {
1196
+ const account_ret = await get_account_name({ uid_query: doc.contact_uid });
1197
+ if (account_ret.code < 0) {
1198
+ continue; // throw new Error(`account ${contact_uid} not found`);
1199
+ }
1198
1200
  }
1199
1201
  }
1200
1202
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.371",
3
+ "version": "1.2.373",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {