@xuda.io/account_module 1.2.2164 → 1.2.2166

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 +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3393,6 +3393,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
3393
3393
  const timestamp_to = new Date(Number(year_to) || year, (Number(month_to) || month) - 1, Number(day_to) || day).getTime();
3394
3394
 
3395
3395
  const query = {
3396
+ include_docs: true,
3396
3397
  startkey: [uid, timestamp_from],
3397
3398
  endkey: [uid, timestamp_to],
3398
3399
  reduce: true,
@@ -3400,7 +3401,6 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
3400
3401
  };
3401
3402
  const response = await db_module.call_app_list_function('xuda_usage', 'ai_usage2', 'filter_usage', query);
3402
3403
 
3403
- const ai_usage = await db_module.get_couch_view('xuda_usage', 'ai_usage', {});
3404
3404
  // console.log('ai_usage', ai_usage.rows);
3405
3405
  debugger;
3406
3406
  let total_usage = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2164",
3
+ "version": "1.2.2166",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {