@xuda.io/account_module 1.2.822 → 1.2.823
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 +7 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1601,12 +1601,14 @@ export const get_contacts = async function (req) {
|
|
|
1601
1601
|
let shared_from = { docs: [] };
|
|
1602
1602
|
let my_contact = { docs: [] };
|
|
1603
1603
|
if (with_requests) {
|
|
1604
|
-
|
|
1605
|
-
|
|
1604
|
+
if (filter_type === 'pending') {
|
|
1605
|
+
////// TO - OUT
|
|
1606
|
+
requests_to.docs = await get_pending_contact_out(uid);
|
|
1606
1607
|
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1608
|
+
////// FROM - IN
|
|
1609
|
+
requests_from.docs = await get_pending_contact_in(uid);
|
|
1610
|
+
shared_from.docs = await get_pending_share_contact_in(uid);
|
|
1611
|
+
}
|
|
1610
1612
|
// my contact
|
|
1611
1613
|
|
|
1612
1614
|
const my_contact_doc = await get_user_contact(uid, uid);
|