From 83c0bfc2deda1e0baeb8424c93d4455dd546b9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 20 Feb 2019 19:07:13 +0400 Subject: [PATCH] :bug: Fix updating self user endpoint with payload as body --- .../backend/app/app/api/api_v1/endpoints/user.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/user.py b/{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/user.py index 2af90ba..2f75859 100644 --- a/{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/user.py +++ b/{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/user.py @@ -95,9 +95,9 @@ def route_users_post( @router.put("/users/me", tags=["users"], response_model=User) def route_users_me_put( *, - password: str = None, - full_name: str = None, - email: EmailStr = None, + password: str = Body(None), + full_name: str = Body(None), + email: EmailStr = Body(None), current_user: UserInDB = Depends(get_current_user), ): """