@xuda.io/ai_module 1.1.3738 → 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 +3 -3
- 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
|
}
|
|
@@ -2506,7 +2506,7 @@ export const delete_ai_agent = async function (req) {
|
|
|
2506
2506
|
const project_db = await get_account_project_db(uid);
|
|
2507
2507
|
|
|
2508
2508
|
try {
|
|
2509
|
-
let prog_doc = await db_module.get_app_couch_doc_native(app_id,
|
|
2509
|
+
let prog_doc = await db_module.get_app_couch_doc_native(app_id, agent_id);
|
|
2510
2510
|
let save_ret;
|
|
2511
2511
|
if (prog_doc.studio_meta.shared_from_uid) {
|
|
2512
2512
|
// delete the share , the doc will delete by the remove_team_member
|