@xuda.io/ai_module 1.1.4099 → 1.1.4100

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
@@ -2807,7 +2807,7 @@ export const get_apps = async function (req, job_id, headers) {
2807
2807
  break;
2808
2808
  }
2809
2809
  case 'shared': {
2810
- opt.selector['studio_meta.shared_from_uid'] = { $gt: null };
2810
+ // opt.selector['studio_meta.shared_from_uid'] = { $gt: null };
2811
2811
  break;
2812
2812
  }
2813
2813
 
@@ -2872,8 +2872,8 @@ export const get_apps = async function (req, job_id, headers) {
2872
2872
 
2873
2873
  let requests_from = { docs: [], total_docs: 0 };
2874
2874
  if (!mini_app_id) {
2875
- if (filter_type === 'pending') {
2876
- 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'] };
2875
+ if (filter_type !== 'mine') {
2876
+ const from_opt = { selector: { docType: 'team_request', access_type: 'miniapp', team_req_stat: filter_type === 'pending' ? 2 : 3, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
2877
2877
  const requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
2878
2878
 
2879
2879
  for await (let e of requests_from_res.docs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4099",
3
+ "version": "1.1.4100",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",