Skip to content

Commit

Permalink
fix getAgent for archived agents
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Fontanier committed Jan 15, 2024
1 parent ece30e3 commit 5dbc3e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions front/lib/api/assistant/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,11 @@ export async function getAgentConfigurations<V extends "light" | "full">({
return Promise.resolve([]);
}
return AgentConfiguration.findAll({
...baseAgentsSequelizeQuery,
where: {
...baseAgentsSequelizeQuery.where,
workspaceId: owner.id,
...(agentPrefix
? { name: { [Op.iLike]: `${agentPrefix}%` } }
: {}),
sId: agentsGetView.agentId,
},
});
Expand Down

0 comments on commit 5dbc3e6

Please sign in to comment.