Fix bundle backtest grain

This commit is contained in:
2025-09-17 16:34:10 +07:00
parent e57b48da7c
commit 3e5b215640
5 changed files with 30 additions and 23 deletions

View File

@@ -73,7 +73,7 @@ public class UserService : IUserService
throw new Exception("Name not corresponding to user " + name);
// User and account found
user.Accounts = _accountService.GetAccountsByUser(user).ToList();
user.Accounts = (await _accountService.GetAccountsByUserAsync(user)).ToList();
// Check if recoverred address owns the account
var account = user.Accounts.FirstOrDefault(a => a.Key.Equals(recoveredAddress));
@@ -184,7 +184,8 @@ public class UserService : IUserService
{
var agentGrain = _grainFactory.GetGrain<IAgentGrain>(user.Id);
await agentGrain.UpdateAgentNameAsync(agentName);
_logger.LogInformation("AgentGrain updated for user {UserId} with agent name {AgentName}", user.Id, agentName);
_logger.LogInformation("AgentGrain updated for user {UserId} with agent name {AgentName}", user.Id,
agentName);
}
catch (Exception ex)
{