diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/UserController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/UserController.cs index ed0dbe12..463e2fee 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/UserController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/UserController.cs @@ -37,10 +37,10 @@ public class UserController : ControllerBase [HttpGet("user/{username}")] public async Task GetUser(string username) { - UserEntity? targetUser = await this.database.Users.FirstOrDefaultAsync(u => u.Username == username); - if (targetUser == null) return this.NotFound(); + UserEntity? user = await this.database.Users.FirstOrDefaultAsync(u => u.Username == username); + if (user == null) return this.NotFound(); - return this.Ok(GameUser.CreateFromEntity(targetUser, this.GetToken().GameVersion)); + return this.Ok(GameUser.CreateFromEntity(user, this.GetToken().GameVersion)); } [HttpGet("users")]