Clear a bit more

This commit is contained in:
2025-08-05 19:34:42 +07:00
parent 0c8c3de807
commit 2dcbcc3ef2
9 changed files with 143 additions and 136 deletions

View File

@@ -11,18 +11,18 @@ namespace Managing.Application.ManageBot
public class GetAllAgentSummariesCommandHandler : IRequestHandler<GetAllAgentSummariesCommand,
IEnumerable<AgentSummary>>
{
private readonly IStatisticService _statisticService;
private readonly IAgentService _agentService;
public GetAllAgentSummariesCommandHandler(IStatisticService statisticService)
public GetAllAgentSummariesCommandHandler(IAgentService agentService)
{
_statisticService = statisticService;
_agentService = agentService;
}
public async Task<IEnumerable<AgentSummary>> Handle(GetAllAgentSummariesCommand request,
CancellationToken cancellationToken)
{
// Get all agent summaries from the database
var allAgentSummaries = await _statisticService.GetAllAgentSummaries();
var allAgentSummaries = await _agentService.GetAllAgentSummaries();
if (request.TimeFilter != "Total")
{