@xuda.io/ai_module 1.1.5026 → 1.1.5028
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
|
@@ -1307,8 +1307,8 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1307
1307
|
include_docs: true, // Required for list function search and data retrieval
|
|
1308
1308
|
startkey: JSON.stringify(startkey),
|
|
1309
1309
|
endkey: JSON.stringify(endkey),
|
|
1310
|
-
limit,
|
|
1311
|
-
skip,
|
|
1310
|
+
limit: limit || 9999,
|
|
1311
|
+
skip: skip || 0,
|
|
1312
1312
|
descending: !reference_id, // Descending for 'ts', Ascending for 'ref'
|
|
1313
1313
|
};
|
|
1314
1314
|
|
|
@@ -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, '
|
|
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
|
|