@xuda.io/account_module 1.2.1303 → 1.2.1305
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 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1423,7 +1423,8 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
if (doc.connection_type === 'account_profile') {
|
|
1425
1425
|
try {
|
|
1426
|
-
const
|
|
1426
|
+
const app_id = await get_account_default_project_id(uid);
|
|
1427
|
+
const account_profile_doc = await db_module.get_app_couch_doc_native(app_id, req_doc.share_item_id);
|
|
1427
1428
|
doc.account_profile = account_profile_doc;
|
|
1428
1429
|
} catch (error) {}
|
|
1429
1430
|
}
|
|
@@ -2562,6 +2563,7 @@ export const get_pending_share_profile_in = async function (uid, _id) {
|
|
|
2562
2563
|
|
|
2563
2564
|
export const get_account_profile_info = async function (uid, contact_profile_doc, _id) {
|
|
2564
2565
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
2566
|
+
const app_id = await get_account_default_project_id(uid);
|
|
2565
2567
|
let doc = contact_profile_doc;
|
|
2566
2568
|
if (_id) {
|
|
2567
2569
|
doc = await db_module.get_couch_doc_native('xuda_accounts', _id);
|
|
@@ -2649,9 +2651,10 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2649
2651
|
};
|
|
2650
2652
|
|
|
2651
2653
|
const get_user_account_profiles = async () => {
|
|
2652
|
-
const account_profile_info = await get_active_account_profile_info(uid);
|
|
2653
|
-
|
|
2654
|
-
let
|
|
2654
|
+
// const account_profile_info = await get_active_account_profile_info(uid);
|
|
2655
|
+
|
|
2656
|
+
let selector = { docType: 'account_profile', stat: 3 };
|
|
2657
|
+
let ret = await db_module.find_app_couch_query(app_id, { selector });
|
|
2655
2658
|
|
|
2656
2659
|
return ret.docs;
|
|
2657
2660
|
};
|