@xuda.io/account_module 1.2.887 → 1.2.888
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 +3 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1649,16 +1649,18 @@ export const get_contacts = async function (req) {
|
|
|
1649
1649
|
doc = await get_contact_info(uid, doc);
|
|
1650
1650
|
contact_docs.docs.push(doc);
|
|
1651
1651
|
}
|
|
1652
|
-
requests_from.total_docs = requests_from.docs.length;
|
|
1653
1652
|
|
|
1654
1653
|
if (!contact_id && with_requests) {
|
|
1655
1654
|
if (filter_type === 'pending') {
|
|
1656
1655
|
////// TO - OUT
|
|
1657
1656
|
requests_to.docs = await get_pending_contact_out(uid);
|
|
1657
|
+
requests_to.total_docs = requests_to.docs.length;
|
|
1658
1658
|
|
|
1659
1659
|
////// FROM - IN
|
|
1660
1660
|
requests_from.docs = await get_pending_contact_in(uid);
|
|
1661
|
+
requests_from.total_docs = requests_from.docs.length;
|
|
1661
1662
|
shared_from.docs = await get_pending_share_contact_in(uid);
|
|
1663
|
+
shared_from.total_docs = shared_from.docs.length;
|
|
1662
1664
|
}
|
|
1663
1665
|
// my contact
|
|
1664
1666
|
if (filter_type === 'all' && !search && contact_docs.docs.length) {
|