🤖 fix: Remove versions and __v when Duplicating an Agent (#8115)

Revert "Add tests for agent duplication controller"

This reverts commit 3e7beb1cc336bcfe1c57411e9c151f5e6aa927e4.
This commit is contained in:
matt burnett 2025-06-28 12:35:41 -04:00 committed by GitHub
parent 1060ae8040
commit 3e1591d404
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 197 additions and 0 deletions

View file

@ -242,6 +242,8 @@ const duplicateAgentHandler = async (req, res) => {
createdAt: _createdAt,
updatedAt: _updatedAt,
tool_resources: _tool_resources = {},
versions: _versions,
__v: _v,
...cloneData
} = agent;
cloneData.name = `${agent.name} (${new Date().toLocaleString('en-US', {