@xuda.io/account_module 1.2.1036 → 1.2.1037

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 +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2575,7 +2575,7 @@ export const get_profiles = async function (req) {
2575
2575
 
2576
2576
  let requests_from = { docs: [], total_docs: 0 };
2577
2577
  let shared_from = { docs: [], total_docs: 0 };
2578
- let my_contact = { docs: [], total_docs: 0 };
2578
+
2579
2579
  let contact_docs = { docs: [], total_docs: profiles.total_docs };
2580
2580
  for await (let doc of profiles.docs) {
2581
2581
  if (ret_to) continue;
@@ -2605,8 +2605,8 @@ export const get_profiles = async function (req) {
2605
2605
  return {
2606
2606
  code: 1,
2607
2607
  data: {
2608
- docs: [...my_contact.docs, ...shared_from.docs, ...requests_from.docs, ...requests_to.docs, ...contact_docs.docs],
2609
- total_docs: my_contact.total_docs + shared_from.total_docs + requests_from.total_docs + requests_to.total_docs + contact_docs.total_docs,
2608
+ docs: [...shared_from.docs, ...contact_docs.docs],
2609
+ total_docs: shared_from.total_docs + contact_docs.total_docs,
2610
2610
  },
2611
2611
  };
2612
2612
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1036",
3
+ "version": "1.2.1037",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {