@xuda.io/account_module 1.2.1046 → 1.2.1048
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 -9
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1699,19 +1699,13 @@ export const get_contacts = async function (req) {
|
|
|
1699
1699
|
shared_from.docs = await get_pending_share_contact_in(uid);
|
|
1700
1700
|
shared_from.total_docs = shared_from.docs.length;
|
|
1701
1701
|
}
|
|
1702
|
-
// my contact
|
|
1703
|
-
if (filter_type === 'all' && !search && contact_docs.docs.length) {
|
|
1704
|
-
const my_contact_doc = await get_user_contact(uid, uid);
|
|
1705
|
-
my_contact.docs = [my_contact_doc];
|
|
1706
|
-
my_contact.total_docs = 1;
|
|
1707
|
-
}
|
|
1708
1702
|
}
|
|
1709
1703
|
|
|
1710
1704
|
return {
|
|
1711
1705
|
code: 1,
|
|
1712
1706
|
data: {
|
|
1713
|
-
docs: [...
|
|
1714
|
-
total_docs:
|
|
1707
|
+
docs: [...shared_from.docs, ...requests_from.docs, ...requests_to.docs, ...contact_docs.docs],
|
|
1708
|
+
total_docs: shared_from.total_docs + requests_from.total_docs + requests_to.total_docs + contact_docs.total_docs,
|
|
1715
1709
|
},
|
|
1716
1710
|
};
|
|
1717
1711
|
};
|
|
@@ -2483,7 +2477,7 @@ setTimeout(async () => {
|
|
|
2483
2477
|
|
|
2484
2478
|
// ret = await get_account_ai_usage({ uid });
|
|
2485
2479
|
// ret = await create_account_profile({ uid });
|
|
2486
|
-
ret = await get_profiles({ uid });
|
|
2480
|
+
// ret = await get_profiles({ uid });
|
|
2487
2481
|
|
|
2488
2482
|
console.log(ret);
|
|
2489
2483
|
}, 1000);
|