@xuda.io/ai_module 1.1.4105 → 1.1.4106
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.
- package/index.mjs +3 -5
- 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
|
-
|
|
2901
|
-
if(account_profile.access_view.includes(
|
|
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;
|