@xuda.io/ai_module 1.1.4099 → 1.1.4101
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 +4 -4
- 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,13 +2872,13 @@ 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
|
|
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) {
|
|
2880
2880
|
//account_info
|
|
2881
|
-
let doc = { ts: e.team_req_date, pending:
|
|
2881
|
+
let doc = { ts: e.team_req_date, pending: filter_type === 'pending', properties: {}, studio_meta: { createdByUid: e.team_req_from_uid }, team_req_id: e._id };
|
|
2882
2882
|
|
|
2883
2883
|
if (e.team_req_from_uid) {
|
|
2884
2884
|
doc.user_contact = await account_module.get_user_card(uid, e.team_req_from_uid);
|