diff options
author | 杨宇千 <crupest@outlook.com> | 2019-07-29 21:32:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-29 21:32:59 +0800 |
commit | 26b578ecaa1ae6b8edc54918794150408765bcd4 (patch) | |
tree | 2e84f806d0a79488dc92e53e66b7772536f1807c /Timeline/Controllers | |
parent | c9f4e8c1b95f1518c40fbb27b72dc0e4bd4e3a6d (diff) | |
parent | 9e8a24a85d819fe11a52ee95e41dfe6c3e016dce (diff) | |
download | timeline-26b578ecaa1ae6b8edc54918794150408765bcd4.tar.gz timeline-26b578ecaa1ae6b8edc54918794150408765bcd4.tar.bz2 timeline-26b578ecaa1ae6b8edc54918794150408765bcd4.zip |
Merge branch 'master' into remove-cos
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 413999ce..84267520 100644 --- a/Timeline/Controllers/UserController.cs +++ b/Timeline/Controllers/UserController.cs @@ -59,7 +59,7 @@ namespace Timeline.Controllers return BadRequest(); } - var result = await _userService.PutUser(username, request.Password, request.IsAdmin); + var result = await _userService.PutUser(username, request.Password, request.Administrator); switch (result) { case PutResult.Created: @@ -78,7 +78,7 @@ namespace Timeline.Controllers { try { - await _userService.PatchUser(username, request.Password, request.IsAdmin); + await _userService.PatchUser(username, request.Password, request.Administrator); return Ok(); } catch (UserNotExistException e) |