Skip to content

Commit

Permalink
fix: create-user route
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard0803 committed Dec 10, 2023
1 parent 336fdd9 commit dc97ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gestao/web/api/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def get_user(user_id: str) -> User:


@router.post("/", response_model_exclude={"dependents__user_id"})
async def create_user(request: Request, create_user: CreateUserDTO) -> User:
async def create_user(create_user: CreateUserDTO) -> User:
try:
create_user_dict = create_user.dict()
dependents = create_user_dict.pop("dependents", [])
Expand Down

0 comments on commit dc97ed9

Please sign in to comment.