@xuda.io/account_module 1.2.832 → 1.2.833
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 +5 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1613,9 +1613,11 @@ export const get_contacts = async function (req) {
|
|
|
1613
1613
|
shared_from.docs = await get_pending_share_contact_in(uid);
|
|
1614
1614
|
}
|
|
1615
1615
|
// my contact
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1616
|
+
if (!filter_type) {
|
|
1617
|
+
//all
|
|
1618
|
+
const my_contact_doc = await get_user_contact(uid, uid);
|
|
1619
|
+
my_contact.docs = [my_contact_doc];
|
|
1620
|
+
}
|
|
1619
1621
|
}
|
|
1620
1622
|
let contact_docs = { docs: [] };
|
|
1621
1623
|
for await (let doc of contacts.docs) {
|