Skip to content

Commit

Permalink
rename PlayerUpdateFields to UserUpdateFields
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Feb 17, 2024
1 parent 336db49 commit 26e460d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/repositories/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class User(TypedDict):
api_key: str | None


class PlayerUpdateFields(TypedDict, total=False):
class UserUpdateFields(TypedDict, total=False):
name: str
safe_name: str
email: str
Expand Down Expand Up @@ -238,7 +238,7 @@ async def update(
api_key: str | None | _UnsetSentinel = UNSET,
) -> User | None:
"""Update a user in the database."""
update_fields: PlayerUpdateFields = {}
update_fields: UserUpdateFields = {}
if not isinstance(name, _UnsetSentinel):
update_fields["name"] = name
update_fields["safe_name"] = make_safe_name(name)
Expand Down

0 comments on commit 26e460d

Please sign in to comment.