Add BacktestCount
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user