@xuda.io/ai_module 1.1.5001 → 1.1.5002

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 +12 -11
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1313,18 +1313,19 @@ export const get_ai_chats = async function (req, job_id, headers) {
1313
1313
  let ai_chats = { docs: [], total_docs: 0 };
1314
1314
 
1315
1315
  if (filter_type !== 'pending') {
1316
- ai_chats = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
1317
- if (!limit || conversation_id) {
1318
- ai_chats.total_docs = ai_chats.docs.length;
1319
- } else {
1320
- delete opt.sort;
1321
- delete opt.skip;
1322
- opt.limit = 9999;
1323
- opt.fields = ['_id'];
1316
+ ai_chats = await get_data_find();
1317
+ // ai_chats = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
1318
+ // if (!limit || conversation_id) {
1319
+ // ai_chats.total_docs = ai_chats.docs.length;
1320
+ // } else {
1321
+ // delete opt.sort;
1322
+ // delete opt.skip;
1323
+ // opt.limit = 9999;
1324
+ // opt.fields = ['_id'];
1324
1325
 
1325
- const counter = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
1326
- ai_chats.total_docs = counter.docs.length;
1327
- }
1326
+ // const counter = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
1327
+ // ai_chats.total_docs = counter.docs.length;
1328
+ // }
1328
1329
  }
1329
1330
 
1330
1331
  let docs = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5001",
3
+ "version": "1.1.5002",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",