@xuda.io/ai_module 1.1.4105 → 1.1.4107

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 (3) hide show
  1. package/index.mjs +3 -5
  2. package/old.mjs +9 -0
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2897,11 +2897,9 @@ export const get_apps = async function (req, job_id, headers) {
2897
2897
  from_opt.access_type = 'account_profile';
2898
2898
  from_opt.access_type = 3;
2899
2899
  const profile_requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
2900
- for await (let account_profile of profile_requests_from_res.docs) {
2901
- if(account_profile.access_view.includes("apps"))
2902
-
2903
-
2904
- }
2900
+ for await (let account_profile of profile_requests_from_res.docs) {
2901
+ if (!account_profile.access_view.includes('apps')) continue;
2902
+ }
2905
2903
  ///////////////////////////
2906
2904
 
2907
2905
  requests_from.total_docs = requests_from.docs.length;
package/old.mjs CHANGED
@@ -1821,3 +1821,12 @@ export const get_apps = async function (req, job_id, headers) {
1821
1821
  return { code: -11, data: err.message };
1822
1822
  }
1823
1823
  };
1824
+
1825
+ ///////// profile /////////
1826
+ from_opt.access_type = 'account_profile';
1827
+ from_opt.access_type = 3;
1828
+ const profile_requests_from_res = await db_module.find_couch_query('xuda_team', from_opt);
1829
+ for await (let account_profile of profile_requests_from_res.docs) {
1830
+ if (!account_profile.access_view.includes('apps')) continue;
1831
+ }
1832
+ ///////////////////////////
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4105",
3
+ "version": "1.1.4107",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",