@xuda.io/ai_module 1.1.3574 → 1.1.3575

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.
Files changed (2) hide show
  1. package/index.mjs +5 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2359,9 +2359,9 @@ export const get_ai_agents = async function (req, job_id, headers) {
2359
2359
  // include_docs: true,
2360
2360
  // });
2361
2361
 
2362
- let user_apps = [];
2362
+ let user_agents = [];
2363
2363
  if (filter_type !== 'pending') {
2364
- user_apps = await db_module.find_app_couch_query(app_id, opt);
2364
+ user_agents = await db_module.find_app_couch_query(app_id, opt);
2365
2365
  }
2366
2366
 
2367
2367
  ////// FROM - IN
@@ -2397,9 +2397,9 @@ export const get_ai_agents = async function (req, job_id, headers) {
2397
2397
  //////////////////////
2398
2398
 
2399
2399
  let docs = [];
2400
- for (let row of user_agents.rows) {
2401
- row.value._id = row.id;
2402
- let doc = await get_ai_agent_info(uid, job_id, headers, row.value);
2400
+ for (let doc of user_agents.docs) {
2401
+ // row.value._id = row.id;
2402
+ let doc = await get_ai_agent_info(uid, job_id, headers, doc);
2403
2403
 
2404
2404
  docs.push(doc);
2405
2405
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3574",
3
+ "version": "1.1.3575",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",