@xuda.io/account_module 1.2.1220 → 1.2.1222
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
|
@@ -2467,7 +2467,6 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
2467
2467
|
let total_usage = 0;
|
|
2468
2468
|
let profile = {};
|
|
2469
2469
|
|
|
2470
|
-
debugger;
|
|
2471
2470
|
for (const row of ai_usage.rows) {
|
|
2472
2471
|
const year = row.key[0];
|
|
2473
2472
|
const month = row.key[1];
|
|
@@ -2487,6 +2486,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
|
|
|
2487
2486
|
}
|
|
2488
2487
|
|
|
2489
2488
|
profile[account_profile_id][uid] += input_credits + output_credits;
|
|
2489
|
+
total_usage += input_credits + output_credits;
|
|
2490
2490
|
}
|
|
2491
2491
|
|
|
2492
2492
|
let membership_plan = _conf.PLAN_OBJ?.[acc_obj?.ai_workspace_plan]?.features?.ai_credits || 0;
|