@xuda.io/ai_module 1.1.3700 → 1.1.3701
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 +12 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2776,12 +2776,20 @@ export const get_apps = async function (req, job_id, headers) {
|
|
|
2776
2776
|
|
|
2777
2777
|
let docs = [];
|
|
2778
2778
|
for (let doc of user_apps.docs) {
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2779
|
+
let reference_doc;
|
|
2780
|
+
|
|
2781
|
+
if (doc.shared_from_uid) {
|
|
2782
|
+
reference_doc = _.cloneDeep(doc);
|
|
2783
|
+
doc = await db_module.get_app_couch_doc_native(reference_doc.shared_from_app_id, reference_doc.share_item_id);
|
|
2784
|
+
doc.reference_doc = reference_doc;
|
|
2783
2785
|
}
|
|
2784
2786
|
|
|
2787
|
+
// if (!doc?.studio_meta?.agent_image?.length && (!doc?.studio_meta?.thumbnail_request_ts || Date.now() - doc?.studio_meta?.thumbnail_request_ts > 120000)) {
|
|
2788
|
+
// if (headers) {
|
|
2789
|
+
// update_thumbnail('mini_app', doc, app_id, uid, job_id, headers);
|
|
2790
|
+
// }
|
|
2791
|
+
// }
|
|
2792
|
+
|
|
2785
2793
|
doc.user_contact = await account_module.get_user_card(uid, doc.studio_meta.createdByUid);
|
|
2786
2794
|
|
|
2787
2795
|
docs.push(doc);
|