@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.
- package/index.mjs +6 -3
- 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
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
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) {
|