@xuda.io/ai_module 1.1.5414 → 1.1.5415

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 +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1274,7 +1274,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1274
1274
  ],
1275
1275
  };
1276
1276
  }
1277
- debugger;
1277
+
1278
1278
  let ai_chats = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
1279
1279
  if (!limit || conversation_id) {
1280
1280
  ai_chats.total_docs = ai_chats.docs.length;
@@ -2062,7 +2062,7 @@ export const get_ai_agents = async function (req, job_id, headers) {
2062
2062
 
2063
2063
  ////// FROM - IN
2064
2064
  let requests_from = { docs: [], total_docs: 0 };
2065
- if (filter_type === 'pending') {
2065
+ if (filter_type === 'pending' && account_profile_info.is_main) {
2066
2066
  const from_opt = { selector: { docType: 'team_request', access_type: 'ai_agent', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
2067
2067
  const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
2068
2068
 
@@ -2440,7 +2440,7 @@ export const get_apps = async function (req, job_id, headers) {
2440
2440
 
2441
2441
  let requests_from = { docs: [], total_docs: 0 };
2442
2442
  if (!mini_app_id) {
2443
- if (filter_type === 'pending') {
2443
+ if (filter_type === 'pending' && account_profile_info.is_main) {
2444
2444
  const from_opt = { selector: { docType: 'team_request', access_type: 'miniapp', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
2445
2445
  const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
2446
2446
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5414",
3
+ "version": "1.1.5415",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",