@xuda.io/account_module 1.2.2084 → 1.2.2086
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 +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2804,7 +2804,6 @@ export const unset_deep_research_contact = async function (req, job_id, headers)
|
|
|
2804
2804
|
//////// PROFILES //////////////
|
|
2805
2805
|
|
|
2806
2806
|
export const get_pending_share_profile_in = async function (uid, _id) {
|
|
2807
|
-
debugger;
|
|
2808
2807
|
let docs = [];
|
|
2809
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'] };
|
|
2810
2809
|
|
|
@@ -2957,6 +2956,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2957
2956
|
const user_account_profiles = await get_user_account_profiles();
|
|
2958
2957
|
|
|
2959
2958
|
const usage_ret = await get_account_ai_usage({ uid });
|
|
2959
|
+
debugger;
|
|
2960
2960
|
doc.max_credits = usage_ret?.data?.credits.total / user_account_profiles.length;
|
|
2961
2961
|
doc.used_credits = 0;
|
|
2962
2962
|
for (const [user, amount] of Object.entries(usage_ret?.data?.usage?.profile?.[doc._id] || {})) {
|