@xuda.io/ai_module 1.1.3552 → 1.1.3553
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 +5 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1830,9 +1830,11 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
1832
1832
|
|
|
1833
|
-
const ai_chats = await db_module.get_app_couch_view(app_id, 'ai_chat_list', {
|
|
1834
|
-
|
|
1835
|
-
});
|
|
1833
|
+
// const ai_chats = await db_module.get_app_couch_view(app_id, 'ai_chat_list', {
|
|
1834
|
+
// key: reference_id || '',
|
|
1835
|
+
// });
|
|
1836
|
+
|
|
1837
|
+
const ai_chats = await db_module.find_app_couch_query(app_id, opt);
|
|
1836
1838
|
let docs = [];
|
|
1837
1839
|
for (let row of ai_chats.rows) {
|
|
1838
1840
|
let doc = row.value;
|