@xuda.io/ai_module 1.1.3700 → 1.1.3702

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.
Files changed (2) hide show
  1. package/index.mjs +12 -4
  2. 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
- if (!doc?.studio_meta?.agent_image?.length && (!doc?.studio_meta?.thumbnail_request_ts || Date.now() - doc?.studio_meta?.thumbnail_request_ts > 120000)) {
2780
- if (headers) {
2781
- update_thumbnail('mini_app', doc, app_id, uid, job_id, headers);
2782
- }
2779
+ let reference_doc;
2780
+
2781
+ if (doc.studio_meta.shared_from_uid) {
2782
+ reference_doc = _.cloneDeep(doc);
2783
+ doc = await db_module.get_app_couch_doc_native(reference_doc.studio_meta.shared_from_app_id, reference_doc.studio_meta.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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3700",
3
+ "version": "1.1.3702",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",