Skip to content

Commit

Permalink
fix: Use to_dict method instead of __dict__ for UserUpdate (#142)
Browse files Browse the repository at this point in the history
Fix: Use to_dict method instead of __dict__ for UserUpdate

Co-authored-by: Cody Fincher <204685+cofin@users.noreply.github.com>
  • Loading branch information
sorasful and cofin committed Mar 23, 2024
1 parent 5cbc78a commit 227792d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async def _promote_to_superuser(email: str) -> None:
)
user = await users_service.update(
item_id=user.id,
data=user_in.__dict__,
data=user_in.to_dict(),
auto_commit=True,
)
console.print(f"Upgraded {email} to superuser")
Expand Down

0 comments on commit 227792d

Please sign in to comment.