@xuda.io/ai_module 1.1.5025 → 1.1.5027

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 +3 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1316,7 +1316,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1316
1316
 
1317
1317
  // 4. Call the List Function
1318
1318
  // URL: /db/_design/chats/_list/filter_chats/by_profile
1319
- const response = await db_module.call_app_list_function(account_profile_info.app_id, 'filter_chats', 'by_profile', query);
1319
+ const response = await db_module.call_app_list_function(account_profile_info.app_id, 'by_profile', 'filter_chats', query);
1320
1320
 
1321
1321
  return response;
1322
1322
 
@@ -1384,9 +1384,10 @@ export const get_ai_chats = async function (req, job_id, headers) {
1384
1384
  let ai_chats = { docs: [], total_docs: 0 };
1385
1385
 
1386
1386
  if (filter_type !== 'pending') {
1387
- ai_chats = await get_data_find();
1388
1387
  let aa = await get_data_view();
1389
1388
  debugger;
1389
+ ai_chats = await get_data_find();
1390
+
1390
1391
  // ai_chats = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
1391
1392
  // if (!limit || conversation_id) {
1392
1393
  // ai_chats.total_docs = ai_chats.docs.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5025",
3
+ "version": "1.1.5027",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",