@xuda.io/ai_module 1.1.3753 → 1.1.3755
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 +7 -7
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1760,7 +1760,13 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1760
1760
|
};
|
|
1761
1761
|
|
|
1762
1762
|
try {
|
|
1763
|
-
if (_id) return await get_studio_doc({ _id, uid });
|
|
1763
|
+
// if (_id) return await get_studio_doc({ _id, uid });
|
|
1764
|
+
|
|
1765
|
+
if (_id) {
|
|
1766
|
+
const app_id = await account_module.get_account_default_project_id(uid);
|
|
1767
|
+
let data = await db_module.get_app_couch_doc(app_id, _id);
|
|
1768
|
+
return data;
|
|
1769
|
+
}
|
|
1764
1770
|
|
|
1765
1771
|
let opt = {
|
|
1766
1772
|
selector: {
|
|
@@ -2837,12 +2843,6 @@ export const get_apps = async function (req, job_id, headers) {
|
|
|
2837
2843
|
doc.reference_doc = reference_doc;
|
|
2838
2844
|
}
|
|
2839
2845
|
|
|
2840
|
-
// if (!doc?.studio_meta?.agent_image?.length && (!doc?.studio_meta?.thumbnail_request_ts || Date.now() - doc?.studio_meta?.thumbnail_request_ts > 120000)) {
|
|
2841
|
-
// if (headers) {
|
|
2842
|
-
// update_thumbnail('mini_app', doc, app_id, uid, job_id, headers);
|
|
2843
|
-
// }
|
|
2844
|
-
// }
|
|
2845
|
-
|
|
2846
2846
|
doc.user_contact = await account_module.get_user_card(uid, doc.studio_meta.createdByUid);
|
|
2847
2847
|
|
|
2848
2848
|
docs.push(doc);
|