@xuda.io/account_module 1.2.1211 → 1.2.1213

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.
Files changed (2) hide show
  1. package/index.mjs +5 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2465,15 +2465,15 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
2465
2465
  // console.log('ai_usage', ai_usage.rows);
2466
2466
 
2467
2467
  let profile = {};
2468
- profile['prf_123'] = 0;
2468
+
2469
2469
  debugger;
2470
2470
  for (const row of ai_usage.rows) {
2471
2471
  const year = row.key[0];
2472
2472
  const month = row.key[1];
2473
- const day = row.key[3];
2474
- const account_profile_id = row.key[4];
2475
- const uid = row.key[5];
2476
- const model = row.key[6];
2473
+ const day = row.key[2];
2474
+ const account_profile_id = row.key[3];
2475
+ const uid = row.key[4];
2476
+ const model = row.key[5];
2477
2477
  const input_tokens = row.value[0];
2478
2478
  const output_tokens = row.value[1];
2479
2479
  const input_credits = row.value[2];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1211",
3
+ "version": "1.2.1213",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {