Skip to content

Commit

Permalink
fix: update safe name with name on !changename command
Browse files Browse the repository at this point in the history
  • Loading branch information
foksurek committed Oct 6, 2023
1 parent a668054 commit 6f546df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/repositories/players.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ async def update(
update_fields: PlayerUpdateFields = {}
if not isinstance(name, _UnsetSentinel):
update_fields["name"] = name
update_fields["safe_name"] = make_safe_name(name)
if not isinstance(email, _UnsetSentinel):
update_fields["email"] = email
if not isinstance(priv, _UnsetSentinel):
Expand Down

0 comments on commit 6f546df

Please sign in to comment.