mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-22 04:34:28 +03:00
Return empty object on success rather than null.
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
This commit is contained in:
parent
0e99412f4c
commit
6e827507f7
1 changed files with 2 additions and 2 deletions
|
@ -69,8 +69,8 @@ class UserAdminServlet(RestServlet):
|
||||||
if target_user == auth_user and not set_admin_to:
|
if target_user == auth_user and not set_admin_to:
|
||||||
raise SynapseError(400, "You may not demote yourself.")
|
raise SynapseError(400, "You may not demote yourself.")
|
||||||
|
|
||||||
ret = yield self.handlers.admin_handler.set_user_server_admin(
|
yield self.handlers.admin_handler.set_user_server_admin(
|
||||||
target_user, set_admin_to
|
target_user, set_admin_to
|
||||||
)
|
)
|
||||||
|
|
||||||
return (200, ret)
|
return (200, {})
|
||||||
|
|
Loading…
Reference in a new issue