@xuda.io/account_module 1.2.835 → 1.2.837
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.
- package/index.mjs +2 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -417,8 +417,7 @@ 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
|
-
|
|
421
|
-
group: true,
|
|
420
|
+
group_level: 1,
|
|
422
421
|
});
|
|
423
422
|
|
|
424
423
|
const team_members = team_ret.data.rows?.[0]?.value || 0;
|
|
@@ -1614,7 +1613,7 @@ export const get_contacts = async function (req) {
|
|
|
1614
1613
|
shared_from.docs = await get_pending_share_contact_in(uid);
|
|
1615
1614
|
}
|
|
1616
1615
|
// my contact
|
|
1617
|
-
if (
|
|
1616
|
+
if (filter_type !== 'all') {
|
|
1618
1617
|
//all
|
|
1619
1618
|
const my_contact_doc = await get_user_contact(uid, uid);
|
|
1620
1619
|
my_contact.docs = [my_contact_doc];
|