@xuda.io/account_module 1.2.832 → 1.2.833

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
@@ -1613,9 +1613,11 @@ export const get_contacts = async function (req) {
1613
1613
  shared_from.docs = await get_pending_share_contact_in(uid);
1614
1614
  }
1615
1615
  // my contact
1616
-
1617
- const my_contact_doc = await get_user_contact(uid, uid);
1618
- my_contact.docs = [my_contact_doc];
1616
+ if (!filter_type) {
1617
+ //all
1618
+ const my_contact_doc = await get_user_contact(uid, uid);
1619
+ my_contact.docs = [my_contact_doc];
1620
+ }
1619
1621
  }
1620
1622
  let contact_docs = { docs: [] };
1621
1623
  for await (let doc of contacts.docs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.832",
3
+ "version": "1.2.833",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {