@xuda.io/account_module 1.2.1007 → 1.2.1009
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
|
@@ -2432,8 +2432,8 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
2432
2432
|
profile['prf_123'] += input_credits + output_credits;
|
|
2433
2433
|
}
|
|
2434
2434
|
|
|
2435
|
-
let membership_plan = _conf?.[acc_obj?.ai_workspace_plan]?.ai_credits || 0;
|
|
2436
|
-
let ai_workspace_plan = _conf?.[acc_obj?.membership_plan]?.ai_credits || 0;
|
|
2435
|
+
let membership_plan = _conf.PLAN_OBJ?.[acc_obj?.ai_workspace_plan]?.ai_credits || 0;
|
|
2436
|
+
let ai_workspace_plan = _conf.PLAN_OBJ?.[acc_obj?.membership_plan]?.ai_credits || 0;
|
|
2437
2437
|
let contact_connection = 0;
|
|
2438
2438
|
|
|
2439
2439
|
let data = { credits: { membership_plan, ai_workspace_plan, contact_connection }, usage: { profile, projects: [] } };
|