@xuda.io/ai_module 1.1.5094 → 1.1.5096
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 +4 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1359,9 +1359,10 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1359
1359
|
};
|
|
1360
1360
|
|
|
1361
1361
|
const get_data_view_conversation_items = async function () {
|
|
1362
|
+
debugger;
|
|
1362
1363
|
let stat_type = filter_type === 'archived' ? 'archived' : 'all';
|
|
1363
1364
|
|
|
1364
|
-
const ret = await db_module.get_app_couch_view(account_profile_info.app_id, '
|
|
1365
|
+
const ret = await db_module.get_app_couch_view(account_profile_info.app_id, 'chat_conversation_list_items', {
|
|
1365
1366
|
startkey: [stat_type, reference_id, 0],
|
|
1366
1367
|
endkey: [stat_type, reference_id, 9999999999999],
|
|
1367
1368
|
limit: parseInt(limit) || 9999,
|
|
@@ -1380,8 +1381,8 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1380
1381
|
}
|
|
1381
1382
|
|
|
1382
1383
|
for (let val of ret.rows || []) {
|
|
1383
|
-
if (val.value.type === '
|
|
1384
|
-
docs.push(conversations[val.value.
|
|
1384
|
+
if (val.value.type === 'conversation_item') {
|
|
1385
|
+
docs.push(conversations[val.value.conversation_item_id]);
|
|
1385
1386
|
}
|
|
1386
1387
|
}
|
|
1387
1388
|
|