@xuda.io/ai_module 1.1.5019 → 1.1.5021
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.
- package/index.mjs +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1318,7 +1318,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1318
1318
|
|
|
1319
1319
|
// 4. Call the List Function
|
|
1320
1320
|
// URL: /db/_design/chats/_list/filter_chats/by_profile
|
|
1321
|
-
const response = await db_module.
|
|
1321
|
+
const response = await db_module.call_app_list_function(account_profile_info.app_id, 'filter_chats', 'by_profile', query);
|
|
1322
1322
|
|
|
1323
1323
|
return response;
|
|
1324
1324
|
|
|
@@ -1387,8 +1387,8 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1387
1387
|
|
|
1388
1388
|
if (filter_type !== 'pending') {
|
|
1389
1389
|
ai_chats = await get_data_find();
|
|
1390
|
-
|
|
1391
|
-
|
|
1390
|
+
let aa = await get_data_view();
|
|
1391
|
+
debugger;
|
|
1392
1392
|
// ai_chats = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
|
|
1393
1393
|
// if (!limit || conversation_id) {
|
|
1394
1394
|
// ai_chats.total_docs = ai_chats.docs.length;
|