Fix db and fix endpoints
This commit is contained in:
@@ -114,4 +114,10 @@ public class AgentService : IAgentService
|
||||
{
|
||||
return await _agentSummaryRepository.GetAllAsync();
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<string>> GetAllOnlineAgents()
|
||||
{
|
||||
var agentSummaries = await _agentSummaryRepository.GetAllAgentWithRunningBots();
|
||||
return agentSummaries.Select(a => a.AgentName);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user