Fix Method Name In LoginAsync And LogoutAsync

This commit is contained in:
Alan Moon 2025-06-30 15:51:40 -07:00
parent 8bbb4954c8
commit e561b84334

View File

@ -174,7 +174,7 @@ namespace qtc_api.Hubs
ServerConfig serverConfig = JsonDocument.Parse(File.ReadAllText("./ServerConfig.json")).Deserialize<ServerConfig>(); ServerConfig serverConfig = JsonDocument.Parse(File.ReadAllText("./ServerConfig.json")).Deserialize<ServerConfig>();
await Clients.Client(Context.ConnectionId).SendAsync("ReceiveServerConfig", serverConfig); await Clients.Client(Context.ConnectionId).SendAsync("ReceiveServerConfig", serverConfig);
await Clients.All.SendAsync("RefreshUserList"); await Clients.All.SendAsync("RefreshUserLists");
Log($"User {user.Username} Has Logged In"); Log($"User {user.Username} Has Logged In");
} }
@ -184,7 +184,7 @@ namespace qtc_api.Hubs
var statusDto = new UserStatusDto { Id = user.Id, Status = 0 }; var statusDto = new UserStatusDto { Id = user.Id, Status = 0 };
await _userService.UpdateStatus(statusDto); await _userService.UpdateStatus(statusDto);
await Clients.All.SendAsync("RefreshUserList"); await Clients.All.SendAsync("RefreshUserLists");
Log($"User {user.Username} Has Logged Out"); Log($"User {user.Username} Has Logged Out");
} }