@xuda.io/account_module 1.2.2121 → 1.2.2123
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 +4 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1722,7 +1722,6 @@ export const get_user_name = async function (uid) {
|
|
|
1722
1722
|
};
|
|
1723
1723
|
|
|
1724
1724
|
export const get_user_card = async function (req) {
|
|
1725
|
-
debugger;
|
|
1726
1725
|
const { uid, uid_query } = req;
|
|
1727
1726
|
if (uid === uid_query) return await get_user_contact(uid, uid_query);
|
|
1728
1727
|
|
|
@@ -1737,6 +1736,7 @@ export const get_user_card = async function (req) {
|
|
|
1737
1736
|
limit: 1,
|
|
1738
1737
|
fields: ['_id'],
|
|
1739
1738
|
};
|
|
1739
|
+
// const account_profile_info = await get_active_account_profile_info(uid);
|
|
1740
1740
|
const user_contacts = await find_contact_query(uid, opt);
|
|
1741
1741
|
|
|
1742
1742
|
const contact_id = user_contacts?.docs?.[0]?._id;
|
|
@@ -3312,7 +3312,6 @@ export const update_entity_account_profiles = async function (req, job_id, heade
|
|
|
3312
3312
|
};
|
|
3313
3313
|
|
|
3314
3314
|
export const get_contact = async function (uid, contact_id) {
|
|
3315
|
-
debugger;
|
|
3316
3315
|
const account_profile_info = await get_active_account_profile_info(uid);
|
|
3317
3316
|
|
|
3318
3317
|
const contact_ret = await db_module.get_app_couch_doc_native(account_profile_info.app_id, contact_id);
|
|
@@ -3326,8 +3325,9 @@ export const save_contact = async function (uid, contact_doc) {
|
|
|
3326
3325
|
};
|
|
3327
3326
|
|
|
3328
3327
|
export const find_contact_query = async function (uid, opt) {
|
|
3329
|
-
const app_id = await get_account_default_project_id(uid);
|
|
3330
|
-
const
|
|
3328
|
+
// const app_id = await get_account_default_project_id(uid);
|
|
3329
|
+
const account_profile_info = await get_active_account_profile_info(uid);
|
|
3330
|
+
const ret = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
|
|
3331
3331
|
return ret;
|
|
3332
3332
|
};
|
|
3333
3333
|
|