@xuda.io/ai_module 1.1.5003 → 1.1.5005
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
|
@@ -1284,13 +1284,13 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1284
1284
|
};
|
|
1285
1285
|
|
|
1286
1286
|
const get_data_view = async function () {
|
|
1287
|
-
const ret = await db_module.
|
|
1287
|
+
const ret = await db_module.get_app_couch_view(account_profile_info.app_id, 'ai_chat_list', {
|
|
1288
1288
|
key: [reference_id],
|
|
1289
1289
|
include_docs: true,
|
|
1290
1290
|
});
|
|
1291
1291
|
|
|
1292
1292
|
debugger;
|
|
1293
|
-
|
|
1293
|
+
return;
|
|
1294
1294
|
let opt = {
|
|
1295
1295
|
selector: {
|
|
1296
1296
|
docType: 'chat_conversation',
|
|
@@ -1410,7 +1410,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1410
1410
|
|
|
1411
1411
|
if (filter_type !== 'pending') {
|
|
1412
1412
|
ai_chats = await get_data_find();
|
|
1413
|
-
|
|
1413
|
+
get_data_view();
|
|
1414
1414
|
// ai_chats = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
|
|
1415
1415
|
// if (!limit || conversation_id) {
|
|
1416
1416
|
// ai_chats.total_docs = ai_chats.docs.length;
|