@xuda.io/ai_module 1.1.4218 → 1.1.4220

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2416,6 +2416,10 @@ export const get_ai_agents = async function (req, job_id, headers) {
2416
2416
  sort: [{ ts: 'desc' }],
2417
2417
  };
2418
2418
 
2419
+ if (!account_profile_info.is_main) {
2420
+ opt.selector['studio_meta.account_profiles'] = { $in: [account_profile_info.account_profile_id] };
2421
+ }
2422
+
2419
2423
  switch (filter_type) {
2420
2424
  case 'archived': {
2421
2425
  opt.selector.stat = 5;
@@ -2474,7 +2478,7 @@ export const get_ai_agents = async function (req, job_id, headers) {
2474
2478
  }
2475
2479
  //////////////
2476
2480
 
2477
- const app_id = await account_module.get_account_default_project_id(uid);
2481
+ // const app_id = await account_module.get_account_default_project_id(uid);
2478
2482
 
2479
2483
  let user_agents = { docs: [], total_docs: 0 };
2480
2484
  if (filter_type !== 'pending') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4218",
3
+ "version": "1.1.4220",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",