@xuda.io/account_module 1.2.1230 → 1.2.1232
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 +8 -7
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2698,14 +2698,15 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2698
2698
|
|
|
2699
2699
|
const get_user_account_profiles = async () => {
|
|
2700
2700
|
let account_profiles = [];
|
|
2701
|
+
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
2701
2702
|
let selector = { docType: 'account_profile', stat: 3, uid: uid };
|
|
2702
|
-
let ret = await db_module.find_app_couch_query(
|
|
2703
|
-
for (const req_obj of ret.docs) {
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
}
|
|
2708
|
-
return
|
|
2703
|
+
let ret = await db_module.find_app_couch_query(account_profile_info.app_id, { selector });
|
|
2704
|
+
// for (const req_obj of ret.docs) {
|
|
2705
|
+
// const account_info_ret = await get_account_name({ uid_query: req_obj.team_req_to_uid });
|
|
2706
|
+
// const info = await await get_contact_info(uid, account_info_ret.data);
|
|
2707
|
+
// members.push(info);
|
|
2708
|
+
// }
|
|
2709
|
+
return ret.docs;
|
|
2709
2710
|
};
|
|
2710
2711
|
|
|
2711
2712
|
// Usage examples:
|