@xuda.io/ai_module 1.1.3739 → 1.1.3740
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2363,8 +2363,8 @@ export const get_ai_agent_info = async function (uid, job_id, headers, doc, from
|
|
|
2363
2363
|
doc.icon_pattern = 'ai-agent-pattern.png';
|
|
2364
2364
|
|
|
2365
2365
|
if (!from_marketplace) {
|
|
2366
|
-
if (doc
|
|
2367
|
-
const shared_from_uid_ret = await account_module.get_account_name({ uid_query: doc.studio_meta.shared_from_uid });
|
|
2366
|
+
if (doc?.reference_doc?.studio_meta?.shared_from_uid) {
|
|
2367
|
+
const shared_from_uid_ret = await account_module.get_account_name({ uid_query: doc.reference_doc.studio_meta.shared_from_uid });
|
|
2368
2368
|
doc.icon_pattern = shared_from_uid_ret.data.profile_avatar;
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|