mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-24 06:01:30 +00:00
Fix zaprit suggestion
This commit is contained in:
parent
0d3e1391ed
commit
ed9c1464a1
1 changed files with 3 additions and 3 deletions
|
@ -37,10 +37,10 @@ public class UserController : ControllerBase
|
|||
[HttpGet("user/{username}")]
|
||||
public async Task<IActionResult> 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")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue