From 70df7a47db6efebb9f0412b1e118957279541792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Wed, 23 Mar 2022 13:40:14 +0000 Subject: [PATCH] typo --- api/kiwi_vpn_api/routers/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/kiwi_vpn_api/routers/user.py b/api/kiwi_vpn_api/routers/user.py index 7f68f6a..66dcd7e 100644 --- a/api/kiwi_vpn_api/routers/user.py +++ b/api/kiwi_vpn_api/routers/user.py @@ -69,7 +69,7 @@ async def get_current_user( @router.post( - "/", + "", responses={ status.HTTP_200_OK: Responses.OK, status.HTTP_400_BAD_REQUEST: Responses.NOT_INSTALLED, @@ -131,7 +131,7 @@ async def remove_user( ) # fail if deletion was unsuccessful - if not user.delete(): + if not user.delete(db): raise HTTPException(status_code=status.HTTP_409_CONFLICT)