@xuda.io/account_module 1.2.881 → 1.2.882
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 +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1633,7 +1633,7 @@ export const get_contacts = async function (req) {
|
|
|
1633
1633
|
shared_from.docs = await get_pending_share_contact_in(uid);
|
|
1634
1634
|
}
|
|
1635
1635
|
// my contact
|
|
1636
|
-
if (filter_type === 'all') {
|
|
1636
|
+
if (filter_type === 'all' && !search && contact_docs.docs.length) {
|
|
1637
1637
|
const my_contact_doc = await get_user_contact(uid, uid);
|
|
1638
1638
|
my_contact.docs = [my_contact_doc];
|
|
1639
1639
|
}
|