@xuda.io/account_module 1.2.1035 → 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 -5
  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;
@@ -2597,8 +2597,6 @@ export const get_profiles = async function (req) {
2597
2597
  if (!profile_id) {
2598
2598
  if (filter_type === 'pending') {
2599
2599
  ////// FROM - IN
2600
- requests_from.docs = await get_pending_contact_in(uid);
2601
- requests_from.total_docs = requests_from.docs.length;
2602
2600
  shared_from.docs = await get_pending_share_contact_in(uid);
2603
2601
  shared_from.total_docs = shared_from.docs.length;
2604
2602
  }
@@ -2607,8 +2605,8 @@ export const get_profiles = async function (req) {
2607
2605
  return {
2608
2606
  code: 1,
2609
2607
  data: {
2610
- docs: [...my_contact.docs, ...shared_from.docs, ...requests_from.docs, ...requests_to.docs, ...contact_docs.docs],
2611
- 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,
2612
2610
  },
2613
2611
  };
2614
2612
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1035",
3
+ "version": "1.2.1037",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {