@xuda.io/account_module 1.2.833 → 1.2.835

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -417,7 +417,8 @@ export const increment_account_usage = async function (req) {
417
417
  const team_ret = await db_module.get_couch_view('xuda_team', 'user_group_shares_count', {
418
418
  key: app.id,
419
419
  reduce: true,
420
- group_level: 1,
420
+ // group_level: 1,
421
+ group: true,
421
422
  });
422
423
 
423
424
  const team_members = team_ret.data.rows?.[0]?.value || 0;
@@ -1603,7 +1604,7 @@ export const get_contacts = async function (req) {
1603
1604
  let requests_from = { docs: [] };
1604
1605
  let shared_from = { docs: [] };
1605
1606
  let my_contact = { docs: [] };
1606
- if (with_requests) {
1607
+ if (!_id && with_requests) {
1607
1608
  if (filter_type === 'pending') {
1608
1609
  ////// TO - OUT
1609
1610
  requests_to.docs = await get_pending_contact_out(uid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.833",
3
+ "version": "1.2.835",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {