@xuda.io/ai_module 1.1.3696 → 1.1.3698
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 +14 -9
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1877,7 +1877,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1877
1877
|
if (filter_type !== 'pending') {
|
|
1878
1878
|
ai_chats = await db_module.find_app_couch_query(app_id, opt);
|
|
1879
1879
|
}
|
|
1880
|
-
|
|
1880
|
+
|
|
1881
1881
|
let docs = [];
|
|
1882
1882
|
|
|
1883
1883
|
for (let doc of ai_chats.docs || []) {
|
|
@@ -2706,6 +2706,12 @@ export const get_apps = async function (req, job_id, headers) {
|
|
|
2706
2706
|
break;
|
|
2707
2707
|
}
|
|
2708
2708
|
|
|
2709
|
+
case 'mine': {
|
|
2710
|
+
opt.selector.uid = uid;
|
|
2711
|
+
|
|
2712
|
+
break;
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2709
2715
|
default:
|
|
2710
2716
|
break;
|
|
2711
2717
|
}
|
|
@@ -2753,21 +2759,20 @@ export const get_apps = async function (req, job_id, headers) {
|
|
|
2753
2759
|
|
|
2754
2760
|
for await (let e of requests_from_res.docs) {
|
|
2755
2761
|
//account_info
|
|
2756
|
-
|
|
2757
2762
|
let doc = { ts: e.team_req_date, pending: true, properties: {}, studio_meta: { createdByUid: e.team_req_from_uid }, team_req_id: e._id };
|
|
2758
2763
|
|
|
2759
2764
|
if (e.team_req_from_uid) {
|
|
2760
2765
|
doc.user_contact = await account_module.get_user_card(uid, e.team_req_from_uid);
|
|
2761
2766
|
}
|
|
2762
|
-
}
|
|
2763
2767
|
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2768
|
+
//share_item_id
|
|
2769
|
+
const app_id = await account_module.get_account_default_project_id(e.team_req_from_uid);
|
|
2770
|
+
const miniapp_ret = await db_module.get_app_couch_doc_native(app_id, e.share_item_id);
|
|
2771
|
+
doc.properties.menuName = miniapp_ret.properties.menuName;
|
|
2772
|
+
doc.studio_meta.agent_image = miniapp_ret.studio_meta.agent_image;
|
|
2769
2773
|
|
|
2770
|
-
|
|
2774
|
+
requests_from.docs.push(doc);
|
|
2775
|
+
}
|
|
2771
2776
|
}
|
|
2772
2777
|
|
|
2773
2778
|
//////////////
|