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