@xuda.io/ai_module 1.1.3593 → 1.1.3594
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
|
@@ -1835,7 +1835,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1835
1835
|
// key: reference_id || '',
|
|
1836
1836
|
// });
|
|
1837
1837
|
|
|
1838
|
-
let ai_chats = [];
|
|
1838
|
+
let ai_chats = { docs: [] };
|
|
1839
1839
|
if (filter_type !== 'pending') {
|
|
1840
1840
|
ai_chats = await db_module.find_app_couch_query(app_id, opt);
|
|
1841
1841
|
}
|
|
@@ -2383,7 +2383,7 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2383
2383
|
// include_docs: true,
|
|
2384
2384
|
// });
|
|
2385
2385
|
|
|
2386
|
-
let user_agents = [];
|
|
2386
|
+
let user_agents = { docs: [] };
|
|
2387
2387
|
if (filter_type !== 'pending') {
|
|
2388
2388
|
user_agents = await db_module.find_app_couch_query(app_id, opt);
|
|
2389
2389
|
}
|
|
@@ -2683,7 +2683,7 @@ export const get_apps = async function (req, job_id, headers) {
|
|
|
2683
2683
|
// include_docs: true,
|
|
2684
2684
|
// });
|
|
2685
2685
|
|
|
2686
|
-
let user_apps = [];
|
|
2686
|
+
let user_apps = { docs: [] };
|
|
2687
2687
|
if (filter_type !== 'pending') {
|
|
2688
2688
|
user_apps = await db_module.find_app_couch_query(app_id, opt);
|
|
2689
2689
|
}
|