@xuda.io/ai_module 1.1.3572 → 1.1.3574

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 +10 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2308,7 +2308,7 @@ export const get_ai_agents = async function (req, job_id, headers) {
2308
2308
  selector: {
2309
2309
  docType: 'studio',
2310
2310
  stat: 3,
2311
- 'studio_meta.miniApp': true,
2311
+ 'studio_properties.menuType': 'ai_agent',
2312
2312
  },
2313
2313
  limit: limit || 9999,
2314
2314
  skip: skip || 0,
@@ -2354,10 +2354,15 @@ export const get_ai_agents = async function (req, job_id, headers) {
2354
2354
  //////////////
2355
2355
 
2356
2356
  const app_id = await account_module.get_account_default_project_id(uid);
2357
- const user_agents = await db_module.get_app_couch_view(app_id, 'studio_docs_by_type', {
2358
- key: 'ai_agent',
2359
- include_docs: true,
2360
- });
2357
+ // const user_agents = await db_module.get_app_couch_view(app_id, 'studio_docs_by_type', {
2358
+ // key: 'ai_agent',
2359
+ // include_docs: true,
2360
+ // });
2361
+
2362
+ let user_apps = [];
2363
+ if (filter_type !== 'pending') {
2364
+ user_apps = await db_module.find_app_couch_query(app_id, opt);
2365
+ }
2361
2366
 
2362
2367
  ////// FROM - IN
2363
2368
  let requests_from = { docs: [] };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3572",
3
+ "version": "1.1.3574",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",