Skip to content

Commit

Permalink
Routes: UpdateUser - Prevent worldbuilding return on user data
Browse files Browse the repository at this point in the history
  • Loading branch information
BertiRean committed Oct 4, 2023
1 parent e15ea3a commit 482e125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ async def update_user(
}

result = await user.update(update_query)
parsed_user = jsonable_encoder(obj=user, exclude={"password", "characters"})
parsed_user = jsonable_encoder(obj=user, exclude={"world_building", "password", "characters"})
return UpdateUserResponse(user=parsed_user)

0 comments on commit 482e125

Please sign in to comment.