Update api_main.py (#60)
Passing the name parameter to create_member() in post_member
This commit is contained in:
parent
aeac3c4b10
commit
0166310a37
@ -104,7 +104,8 @@ class Handlers:
|
||||
|
||||
@require_system
|
||||
async def post_member(request):
|
||||
member = await request["system"].create_member(request["conn"])
|
||||
req = await request.json()
|
||||
member = await request["system"].create_member(request["conn"], req["name"])
|
||||
return web.json_response(member.to_json())
|
||||
|
||||
@require_system
|
||||
|
Loading…
Reference in New Issue
Block a user