diff options
author | Intevel ツ <59223342+Intevel@users.noreply.github.com> | 2021-08-13 12:03:54 +0200 |
---|---|---|
committer | Intevel ツ <59223342+Intevel@users.noreply.github.com> | 2021-08-13 12:03:54 +0200 |
commit | 14ffb5c0408acdd2dc9c4783df4b46ec8e16905f (patch) | |
tree | b8422645ce1784046a05cafa641e04a27b9400b4 /api/src/routes | |
parent | Merge pull request #256 from luth31/master (diff) | |
download | server-14ffb5c0408acdd2dc9c4783df4b46ec8e16905f.tar.xz |
Fixed #257 Can't change nickname
Diffstat (limited to 'api/src/routes')
-rw-r--r-- | api/src/routes/guilds/#guild_id/members/#member_id/nick.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/routes/guilds/#guild_id/members/#member_id/nick.ts b/api/src/routes/guilds/#guild_id/members/#member_id/nick.ts index 9078409d..77b8d72a 100644 --- a/api/src/routes/guilds/#guild_id/members/#member_id/nick.ts +++ b/api/src/routes/guilds/#guild_id/members/#member_id/nick.ts @@ -17,8 +17,8 @@ router.patch("/", check(MemberNickChangeSchema), async (req: Request, res: Respo const perms = await getPermission(req.user_id, guild_id); perms.hasThrow(permissionString); - await changeNickname(member_id, guild_id, req.body.nickname); - res.status(204); + await changeNickname(member_id, guild_id, req.body.nick); + res.status(200).send(); }); export default router; |