@xuda.io/ai_module 1.1.3668 → 1.1.3669

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1809,7 +1809,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1809
1809
 
1810
1810
  ////// FROM - IN
1811
1811
  let requests_from = { docs: [] };
1812
- debugger;
1812
+
1813
1813
  if (!reference_id) {
1814
1814
  if (filter_type === 'pending') {
1815
1815
  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'] };
@@ -1832,7 +1832,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1832
1832
  }
1833
1833
  }
1834
1834
 
1835
- if (filter_type === 'shared' || !filter_type) {
1835
+ if (filter_type === 'shared' || !filter_type === 'all') {
1836
1836
  const from_opt = { selector: { docType: 'team_request', access_type: 'chat', team_req_stat: 3, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
1837
1837
  const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
1838
1838
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3668",
3
+ "version": "1.1.3669",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",