@xuda.io/account_module 1.2.822 → 1.2.823

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 +7 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1601,12 +1601,14 @@ export const get_contacts = async function (req) {
1601
1601
  let shared_from = { docs: [] };
1602
1602
  let my_contact = { docs: [] };
1603
1603
  if (with_requests) {
1604
- ////// TO - OUT
1605
- requests_to.docs = await get_pending_contact_out(uid);
1604
+ if (filter_type === 'pending') {
1605
+ ////// TO - OUT
1606
+ requests_to.docs = await get_pending_contact_out(uid);
1606
1607
 
1607
- ////// FROM - IN
1608
- requests_from.docs = await get_pending_contact_in(uid);
1609
- shared_from.docs = await get_pending_share_contact_in(uid);
1608
+ ////// FROM - IN
1609
+ requests_from.docs = await get_pending_contact_in(uid);
1610
+ shared_from.docs = await get_pending_share_contact_in(uid);
1611
+ }
1610
1612
  // my contact
1611
1613
 
1612
1614
  const my_contact_doc = await get_user_contact(uid, uid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.822",
3
+ "version": "1.2.823",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {