@xuda.io/ai_module 1.1.5001 → 1.1.5002
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 +12 -11
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1313,18 +1313,19 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1313
1313
|
let ai_chats = { docs: [], total_docs: 0 };
|
|
1314
1314
|
|
|
1315
1315
|
if (filter_type !== 'pending') {
|
|
1316
|
-
ai_chats = await
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1316
|
+
ai_chats = await get_data_find();
|
|
1317
|
+
// ai_chats = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
|
|
1318
|
+
// if (!limit || conversation_id) {
|
|
1319
|
+
// ai_chats.total_docs = ai_chats.docs.length;
|
|
1320
|
+
// } else {
|
|
1321
|
+
// delete opt.sort;
|
|
1322
|
+
// delete opt.skip;
|
|
1323
|
+
// opt.limit = 9999;
|
|
1324
|
+
// opt.fields = ['_id'];
|
|
1324
1325
|
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
}
|
|
1326
|
+
// const counter = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
|
|
1327
|
+
// ai_chats.total_docs = counter.docs.length;
|
|
1328
|
+
// }
|
|
1328
1329
|
}
|
|
1329
1330
|
|
|
1330
1331
|
let docs = [];
|