@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.
- package/index.mjs +5 -5
- 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
|
|
2362
|
+
let user_agents = [];
|
|
2363
2363
|
if (filter_type !== 'pending') {
|
|
2364
|
-
|
|
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
|
|
2401
|
-
row.value._id = row.id;
|
|
2402
|
-
let doc = await get_ai_agent_info(uid, job_id, headers,
|
|
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
|
}
|