@xuda.io/account_module 1.2.880 → 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 +3 -3
- 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
|
}
|
|
@@ -2069,12 +2069,12 @@ export const create_account_oauth_link = async function (req, job_id) {
|
|
|
2069
2069
|
};
|
|
2070
2070
|
};
|
|
2071
2071
|
|
|
2072
|
-
export const
|
|
2072
|
+
export const get_default_project_account_doc = async function (uid) {
|
|
2073
2073
|
const ret = await db_module.get_couch_doc('xuda_accounts', uid);
|
|
2074
2074
|
return ret.data;
|
|
2075
2075
|
};
|
|
2076
2076
|
export const get_account_default_project_id = async function (uid) {
|
|
2077
|
-
const account_obj = await
|
|
2077
|
+
const account_obj = await get_default_project_account_doc(uid);
|
|
2078
2078
|
return account_obj.account_project_id;
|
|
2079
2079
|
};
|
|
2080
2080
|
|