Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit 83c0bfc

Browse files
committed
🐛 Fix updating self user endpoint with payload as body
1 parent 4ffe73a commit 83c0bfc

File tree

1 file changed

+3
-3
lines changed
  • {{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints

1 file changed

+3
-3
lines changed

{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/user.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ def route_users_post(
9595
@router.put("/users/me", tags=["users"], response_model=User)
9696
def route_users_me_put(
9797
*,
98-
password: str = None,
99-
full_name: str = None,
100-
email: EmailStr = None,
98+
password: str = Body(None),
99+
full_name: str = Body(None),
100+
email: EmailStr = Body(None),
101101
current_user: UserInDB = Depends(get_current_user),
102102
):
103103
"""

0 commit comments

Comments
 (0)