@xuda.io/account_module 1.2.2082 → 1.2.2083
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,7 +2806,6 @@ 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);
|
|
2810
2809
|
|
|
2811
2810
|
if (_id) {
|
|
2812
2811
|
to_opt.selector._id = _id;
|
|
@@ -2815,7 +2814,8 @@ export const get_pending_share_profile_in = async function (uid, _id) {
|
|
|
2815
2814
|
const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
|
|
2816
2815
|
|
|
2817
2816
|
for await (let e of requests_from_res.docs) {
|
|
2818
|
-
|
|
2817
|
+
const account_profile_info = await get_active_account_profile_info(e.team_req_from_uid);
|
|
2818
|
+
let doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, e.share_item_id);
|
|
2819
2819
|
|
|
2820
2820
|
doc.shared_from_uid = e.team_req_from_uid;
|
|
2821
2821
|
doc.pending = true;
|