@xuda.io/ai_module 1.1.5413 → 1.1.5414

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 +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1392,7 +1392,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1392
1392
  let requests_from = { docs: [], total_docs: 0 };
1393
1393
 
1394
1394
  if (!reference_id) {
1395
- if (filter_type === 'pending') {
1395
+ if (filter_type === 'pending' && account_profile_info.is_main) {
1396
1396
  const from_opt = { selector: { docType: 'team_request', access_type: 'chat', 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'] };
1397
1397
  const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
1398
1398
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5413",
3
+ "version": "1.1.5414",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",