@xuda.io/ai_module 1.1.5050 → 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 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1370,9 +1370,12 @@ export const get_ai_chats = async function (req, job_id, headers) {
1370
1370
  let ai_chats = { docs: [], total_docs: 0 };
1371
1371
 
1372
1372
  if (filter_type !== 'pending') {
1373
- let aa = await get_data_view();
1374
- debugger;
1375
- 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
+ }
1376
1379
 
1377
1380
  // ai_chats = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
1378
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.5050",
3
+ "version": "1.1.5051",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",