@xuda.io/account_module 1.2.796 → 1.2.798

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 -6
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1542,7 +1542,8 @@ export const get_contacts = async function (req) {
1542
1542
  uid,
1543
1543
  stat: { $lt: 4 },
1544
1544
  },
1545
- limit: limit ? limit : 99999,
1545
+ limit: limit || 9999,
1546
+ skip: skip || 0,
1546
1547
  };
1547
1548
 
1548
1549
  if (_id) {
@@ -1568,15 +1569,15 @@ export const get_contacts = async function (req) {
1568
1569
  ];
1569
1570
  }
1570
1571
 
1571
- if (skip) {
1572
- opt.skip = skip;
1573
- }
1574
-
1575
1572
  if (bookmark && bookmark !== 'nil') {
1576
1573
  opt.bookmark = bookmark;
1577
1574
  }
1578
1575
 
1579
- const contacts = await db_module.find_couch_query('xuda_contacts', opt);
1576
+ let contacts = [];
1577
+
1578
+ if (filter_type !== 'pending') {
1579
+ contacts = await db_module.find_couch_query('xuda_contacts', opt);
1580
+ }
1580
1581
 
1581
1582
  let requests_to = { docs: [] };
1582
1583
  let requests_from = { docs: [] };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.796",
3
+ "version": "1.2.798",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {