@xuda.io/ai_module 1.1.4088 → 1.1.4089

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 +3 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2626,6 +2626,9 @@ export const archive_ai_agent = async function (req) {
2626
2626
 
2627
2627
  const app_id = await account_module.get_account_default_project_id(uid);
2628
2628
  try {
2629
+ const team_module = await import(`${module_path}/team_module/index.mjs`);
2630
+ await team_module.validate_share_exist(uid, 'ai_agent', agent_id);
2631
+
2629
2632
  let agent_doc = await db_module.get_app_couch_doc_native(app_id, agent_id);
2630
2633
  agent_doc.stat = 5;
2631
2634
  agent_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.4088",
3
+ "version": "1.1.4089",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",