@xuda.io/ai_module 1.1.3707 → 1.1.3709

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 +2 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2471,7 +2471,6 @@ export const get_ai_agents = async function (req, job_id, headers) {
2471
2471
 
2472
2472
  let docs = [];
2473
2473
  for (let doc of user_agents.docs) {
2474
- // row.value._id = row.id;
2475
2474
  let info_doc = await get_ai_agent_info(uid, job_id, headers, doc);
2476
2475
 
2477
2476
  docs.push(info_doc);
@@ -2609,10 +2608,10 @@ export const delete_mini_app = async function (req) {
2609
2608
  try {
2610
2609
  let prog_doc = await db_module.get_app_couch_doc_native(app_id, prog_id);
2611
2610
  let save_ret;
2612
- if (conversation_doc.shared_from_uid) {
2611
+ if (prog_doc.studio_meta.shared_from_uid) {
2613
2612
  // delete the share , the doc will delete by the remove_team_member
2614
2613
  const team_module = await import(`${module_path}/team_module/index.mjs`);
2615
- save_ret = await team_module.remove_team_member({ team_req_id: conversation_doc.team_req_id });
2614
+ save_ret = await team_module.remove_team_member({ team_req_id: prog_doc.studio_meta.team_req_id });
2616
2615
  } else {
2617
2616
  prog_doc.stat = 4;
2618
2617
  prog_doc.ts = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3707",
3
+ "version": "1.1.3709",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",