From 482e12517d240cc65cb4feb2825c1738db98bec1 Mon Sep 17 00:00:00 2001 From: BertiRean Date: Wed, 4 Oct 2023 14:47:55 -0300 Subject: [PATCH] Routes: UpdateUser - Prevent worldbuilding return on user data --- app/routes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/user.py b/app/routes/user.py index afdacbc..b14f93e 100644 --- a/app/routes/user.py +++ b/app/routes/user.py @@ -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)