@xuda.io/ai_module 1.1.5049 → 1.1.5051

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 +6 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1338,7 +1338,6 @@ export const get_ai_chats = async function (req, job_id, headers) {
1338
1338
  });
1339
1339
 
1340
1340
  return ret;
1341
- debugger;
1342
1341
  };
1343
1342
 
1344
1343
  ////// FROM - IN
@@ -1371,9 +1370,12 @@ export const get_ai_chats = async function (req, job_id, headers) {
1371
1370
  let ai_chats = { docs: [], total_docs: 0 };
1372
1371
 
1373
1372
  if (filter_type !== 'pending') {
1374
- let aa = await get_data_view();
1375
- debugger;
1376
- ai_chats = await get_data_find();
1373
+ if (reference_id) {
1374
+ ai_chats = await get_data_view();
1375
+ debugger;
1376
+ } else {
1377
+ ai_chats = await get_data_find();
1378
+ }
1377
1379
 
1378
1380
  // ai_chats = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
1379
1381
  // if (!limit || conversation_id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5049",
3
+ "version": "1.1.5051",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",