Add BacktestCount

This commit is contained in:
2025-10-01 13:01:03 +07:00
parent 3e680ab815
commit 06850b57c4
14 changed files with 1571 additions and 9 deletions

View File

@@ -150,4 +150,19 @@ public class AgentService : IAgentService
{
return await _agentSummaryRepository.GetTotalAgentCount();
}
public async Task IncrementBacktestCountAsync(int userId)
{
try
{
await _agentSummaryRepository.IncrementBacktestCountAsync(userId);
_logger.LogInformation("Backtest count incremented for user {UserId}", userId);
}
catch (Exception ex)
{
_logger.LogError(ex, "Error incrementing backtest count for user {UserId}", userId);
throw;
}
}
}