@xuda.io/ai_module 1.1.3557 → 1.1.3559
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1715,7 +1715,7 @@ export const get_chat_conversation = async function (req) {
|
|
|
1715
1715
|
|
|
1716
1716
|
export const get_ai_chats = async function (req, job_id, headers) {
|
|
1717
1717
|
let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit, skip } = req;
|
|
1718
|
-
|
|
1718
|
+
debugger;
|
|
1719
1719
|
const get_conversation_background = function (doc) {
|
|
1720
1720
|
let deg = 145;
|
|
1721
1721
|
|
|
@@ -1835,7 +1835,10 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1835
1835
|
// key: reference_id || '',
|
|
1836
1836
|
// });
|
|
1837
1837
|
debugger;
|
|
1838
|
-
|
|
1838
|
+
let ai_chats = [];
|
|
1839
|
+
if (filter_type !== 'pending') {
|
|
1840
|
+
ai_chats = await db_module.find_app_couch_query(app_id, opt);
|
|
1841
|
+
}
|
|
1839
1842
|
let docs = [];
|
|
1840
1843
|
// for (let row of ai_chats.rows) {
|
|
1841
1844
|
for (let doc of ai_chats.docs || []) {
|