diff options
author | crupest <crupest@outlook.com> | 2020-01-29 18:38:41 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-01-29 18:38:41 +0800 |
commit | 401a0c86054711bf5ebdce7d7717c9b59bffc2fa (patch) | |
tree | dd1cd091ecc2c80943735af4b71b53ef26fc7eee /Timeline/Controllers | |
parent | b6043126fae039c58512f60a576b10925b06df4c (diff) | |
download | timeline-401a0c86054711bf5ebdce7d7717c9b59bffc2fa.tar.gz timeline-401a0c86054711bf5ebdce7d7717c9b59bffc2fa.tar.bz2 timeline-401a0c86054711bf5ebdce7d7717c9b59bffc2fa.zip |
...
Diffstat (limited to 'Timeline/Controllers')
-rw-r--r-- | Timeline/Controllers/UserController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/Controllers/UserController.cs b/Timeline/Controllers/UserController.cs index 5f1b7bd7..3305952a 100644 --- a/Timeline/Controllers/UserController.cs +++ b/Timeline/Controllers/UserController.cs @@ -29,7 +29,7 @@ namespace Timeline.Controllers [HttpGet("users"), AdminAuthorize]
public async Task<ActionResult<User[]>> List()
{
- return Ok(await _userService.ListUsers());
+ return Ok(await _userService.GetUsers());
}
[HttpGet("users/{username}"), AdminAuthorize]
@@ -105,7 +105,7 @@ namespace Timeline.Controllers ("Old Username", request.OldUsername), ("New Username", request.NewUsername)));
return BadRequest(ErrorResponse.UserCommon.NotExist());
}
- catch (UsernameConfictException e)
+ catch (ConfictException e)
{
_logger.LogInformation(e, Log.Format(LogChangeUsernameConflict,
("Old Username", request.OldUsername), ("New Username", request.NewUsername)));
|