@xuda.io/ai_module 1.1.3898 → 1.1.3899

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 +4 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2703,10 +2703,11 @@ export const update_ai_agent = async function (req, job_id, headers) {
2703
2703
  const data = await db_module.save_app_couch_doc_native(app_id, agent_doc);
2704
2704
 
2705
2705
  setTimeout(async () => {
2706
- if (!name_changed) return;
2707
- await update_ai_agent_properties(agent_doc, app_id, uid);
2708
2706
  if (!name_changed && !agent_category_changed && !agent_subcategory_changed) return;
2709
- await update_thumbnail('ai_agent', agent_doc, app_id, uid, job_id, headers);
2707
+ await update_ai_agent_properties(agent_doc, app_id, uid);
2708
+ if (name_changed) {
2709
+ await update_thumbnail('ai_agent', agent_doc, app_id, uid, job_id, headers);
2710
+ }
2710
2711
  }, 500);
2711
2712
 
2712
2713
  upload_agent_files(uid, agent_doc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3898",
3
+ "version": "1.1.3899",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",