Skip to content

Commit af85eb3

Browse files
committed
Fix bug so fetched agents from db pass validation
1 parent d9eb2be commit af85eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/templates/agent-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async function fetchAgentFromDatabase(parsedAgentId: {
7777

7878
// Validate the raw agent data with the original agentId (not full identifier)
7979
const validationResult = validateSingleAgent(
80-
{ ...rawAgentData, id: agentId },
80+
{ ...rawAgentData, id: agentId, version: agentConfig.version },
8181
{
8282
filePath: `${publisherId}/${agentId}@${agentConfig.version}`,
8383
},

0 commit comments

Comments
 (0)