@xuda.io/account_module 1.2.2081 → 1.2.2082
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2806,6 +2806,7 @@ export const unset_deep_research_contact = async function (req, job_id, headers)
|
|
|
2806
2806
|
export const get_pending_share_profile_in = async function (uid, _id) {
|
|
2807
2807
|
let docs = [];
|
|
2808
2808
|
const from_opt = { selector: { docType: 'team_request', access_type: 'account_profile', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
|
|
2809
|
+
const app_id = await get_account_default_project_id(uid);
|
|
2809
2810
|
|
|
2810
2811
|
if (_id) {
|
|
2811
2812
|
to_opt.selector._id = _id;
|
|
@@ -2814,7 +2815,7 @@ export const get_pending_share_profile_in = async function (uid, _id) {
|
|
|
2814
2815
|
const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
|
|
2815
2816
|
|
|
2816
2817
|
for await (let e of requests_from_res.docs) {
|
|
2817
|
-
let doc = await db_module.
|
|
2818
|
+
let doc = await db_module.get_app_couch_doc_native(app_id, e.share_item_id);
|
|
2818
2819
|
|
|
2819
2820
|
doc.shared_from_uid = e.team_req_from_uid;
|
|
2820
2821
|
doc.pending = true;
|
|
@@ -2971,7 +2972,6 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2971
2972
|
};
|
|
2972
2973
|
|
|
2973
2974
|
export const get_account_profiles = async function (req) {
|
|
2974
|
-
debugger;
|
|
2975
2975
|
const { _id, uid, profile_name, limit, skip, bookmark, search, filter_type = 'all', profile_id, active_tab } = req;
|
|
2976
2976
|
const app_id = await get_account_default_project_id(uid);
|
|
2977
2977
|
if (_id) {
|