Fix get UserStrategies
This commit is contained in:
@@ -446,9 +446,9 @@ public class DataController : ControllerBase
|
||||
var agentBalanceHistory = await _agentService.GetAgentBalances(agentName, startDate, endDate);
|
||||
|
||||
// Convert to detailed view model with additional information
|
||||
var result = userStrategies
|
||||
.Select(strategy => MapStrategyToViewModelAsync(strategy, agentBalanceHistory))
|
||||
.ToList();
|
||||
var result = await Task.WhenAll(
|
||||
userStrategies.Select(strategy => MapStrategyToViewModelAsync(strategy, agentBalanceHistory))
|
||||
);
|
||||
|
||||
return Ok(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user