Fix bundle backtest grain
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user