@xuda.io/ai_module 1.1.3737 → 1.1.3739
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
|
@@ -2501,12 +2501,12 @@ export const get_ai_agents = async function (req, job_id, headers) {
|
|
|
2501
2501
|
};
|
|
2502
2502
|
|
|
2503
2503
|
export const delete_ai_agent = async function (req) {
|
|
2504
|
-
let { agent_id, uid } = req;
|
|
2504
|
+
let { agent_id, uid, app_id } = req;
|
|
2505
2505
|
|
|
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
|