Add Additional Logging/Diagnostics For Weird Status Behaviours

This commit is contained in:
Alan Moon 2025-07-17 14:38:57 -07:00
parent 36a7b1f49b
commit 5ff5d63882

View File

@ -111,9 +111,12 @@ namespace qtc_api.Hubs
Log($"Updating Status\n{JsonSerializer.Serialize(statusDto)}");
await _userService.UpdateStatus(statusDto);
var res = await _userService.UpdateStatus(statusDto);
await Clients.All.SendAsync("RefreshUserLists");
if (res != null && res.Success && res.Data != null)
Log($"Status Was Set To {res.Data.Status} On User {user.Username}");
else
Log($"Something Went Wrong Setting The Status On User {user.Username}");
}
[HubMethodName("JoinLobby")]