@xuda.io/ai_module 1.1.4173 → 1.1.4174
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
|
@@ -2579,10 +2579,10 @@ export const delete_ai_agent = async function (req) {
|
|
|
2579
2579
|
const team_module = await import(`${module_path}/team_module/index.mjs`);
|
|
2580
2580
|
save_ret = await team_module.remove_team_member({ team_req_id: prog_doc.studio_meta.team_req_id });
|
|
2581
2581
|
} else {
|
|
2582
|
-
let agent_doc = await db_module.
|
|
2582
|
+
let agent_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, agent_id);
|
|
2583
2583
|
agent_doc.stat = 4;
|
|
2584
2584
|
agent_doc.ts = Date.now();
|
|
2585
|
-
const save_ret = await
|
|
2585
|
+
const save_ret = await db_module.save_app_couch_doc_native(account_profile_info.app_id, agent_doc);
|
|
2586
2586
|
|
|
2587
2587
|
for (const [key, val] of Object.entries(agent_doc?.agentConfig?.agent_tools || [])) {
|
|
2588
2588
|
const file_id = val?.youtube?.file_id || val?.file?.file_id;
|