Skip to content

Commit

Permalink
Update user_service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ormequ authored Dec 10, 2024
1 parent 7cb7ae5 commit fcfe835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/user_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_user_by_id(user_id: str):


def update_user(user_id: str, user_data: dict):
get_user_by_id(user_id) # verify that user exists
get_user_by_id(user_id) # check user exists

if 'nickname' in user_data:
existing = get_user_by_nickname(user_data['nickname'])
Expand Down Expand Up @@ -349,4 +349,4 @@ def statistic_visits(courtyard_title: str = None, courtyard_address: str = None,
**courtyard_params,
"visited_from": visited_from,
"visited_to": visited_to,
})
})

0 comments on commit fcfe835

Please sign in to comment.