@xuda.io/account_module 1.2.1556 → 1.2.1558

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 +3 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1878,7 +1878,8 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
1878
1878
  group_level: 999,
1879
1879
  });
1880
1880
 
1881
- let credits_obj, total_credits;
1881
+ let credits_obj,
1882
+ total_credits = 0;
1882
1883
  for (const row of ai_credits.data.rows) {
1883
1884
  const user = row.key[0];
1884
1885
  const source = row.key[1];
@@ -1894,7 +1895,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
1894
1895
  }
1895
1896
 
1896
1897
  let data = { credits: { ...credits_obj, total: total_credits }, usage: { profile, projects: [], total: total_usage } };
1897
-
1898
+ debugger;
1898
1899
  return { code: 55, data };
1899
1900
  } catch (err) {
1900
1901
  return { code: -55, data: err.message };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1556",
3
+ "version": "1.2.1558",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {