@xuda.io/ai_module 1.1.3934 → 1.1.3935
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 +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2449,8 +2449,9 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2449
2449
|
|
|
2450
2450
|
let user_agents = { docs: [], total_docs: 0 };
|
|
2451
2451
|
if (filter_type !== 'pending') {
|
|
2452
|
+
user_agents = await db_module.find_app_couch_query(app_id, opt);
|
|
2452
2453
|
if (!limit || ai_agent_id) {
|
|
2453
|
-
user_agents =
|
|
2454
|
+
user_agents.total_docs = ai_chats.docs.length;
|
|
2454
2455
|
}
|
|
2455
2456
|
} else {
|
|
2456
2457
|
delete opt.sort;
|