@xuda.io/account_module 1.2.888 → 1.2.890
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 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1666,6 +1666,7 @@ export const get_contacts = async function (req) {
|
|
|
1666
1666
|
if (filter_type === 'all' && !search && contact_docs.docs.length) {
|
|
1667
1667
|
const my_contact_doc = await get_user_contact(uid, uid);
|
|
1668
1668
|
my_contact.docs = [my_contact_doc];
|
|
1669
|
+
my_contact.total_docs = 1;
|
|
1669
1670
|
}
|
|
1670
1671
|
}
|
|
1671
1672
|
|
|
@@ -1673,6 +1674,7 @@ export const get_contacts = async function (req) {
|
|
|
1673
1674
|
code: 1,
|
|
1674
1675
|
data: {
|
|
1675
1676
|
docs: [...my_contact.docs, ...shared_from.docs, ...requests_from.docs, ...requests_to.docs, ...contact_docs.docs],
|
|
1677
|
+
total_docs: my_contact.total_docs + shared_from.total_docs + requests_from.total_docs + requests_to.total_docs + contact_docs.total_docs,
|
|
1676
1678
|
},
|
|
1677
1679
|
};
|
|
1678
1680
|
};
|