Update api_main.py (#60)

Passing the name parameter to create_member() in post_member
This commit is contained in:
Grey Himmel 2019-03-20 17:33:37 -04:00 committed by Astrid
parent aeac3c4b10
commit 0166310a37

View File

@ -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