@xuda.io/ai_module 1.1.5024 → 1.1.5026
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1285,7 +1285,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1285
1285
|
|
|
1286
1286
|
const get_data_view = async function () {
|
|
1287
1287
|
const profileId = account_profile_info.is_main ? 'ADMIN_OR_ALL' : account_profile_info.account_profile_id;
|
|
1288
|
-
|
|
1288
|
+
debugger;
|
|
1289
1289
|
// 1. Determine Sort Pattern and Key Prefix
|
|
1290
1290
|
const sortType = reference_id ? 'ref' : 'ts';
|
|
1291
1291
|
|
|
@@ -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;
|