@xuda.io/account_module 1.2.1559 → 1.2.1561

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1826,7 +1826,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
1826
1826
  const { uid, year, month, day, usage_scope = 'account' } = req;
1827
1827
  try {
1828
1828
  // const app_id = await get_account_default_project_id(uid);
1829
- const { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
1829
+ // const { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
1830
1830
 
1831
1831
  const d = new Date();
1832
1832
  const curr_month = Number(String(d.getMonth() + 1).padStart(2, '0')); // months are 0-based
@@ -1895,7 +1895,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
1895
1895
  }
1896
1896
 
1897
1897
  let data = { credits: { ...credits_obj, total: total_credits }, usage: { profile, projects: [], total: total_usage } };
1898
- debugger;
1898
+
1899
1899
  return { code: 55, data };
1900
1900
  } catch (err) {
1901
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.1559",
3
+ "version": "1.2.1561",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {