Skip to content

Commit

Permalink
fix: update user profile image (#1373)
Browse files Browse the repository at this point in the history
Co-authored-by: sujanadh <[email protected]>
  • Loading branch information
Sujanadh and sujanadh authored Mar 21, 2024
1 parent fa9e935 commit e0237b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/app/auth/auth_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async def get_or_create_user(
{
"user_id": user_data.id,
"username": user_data.username,
"profile_img": user_data.profile_img,
"profile_img": user_data.img_url,
"role": role,
"mapping_level": "BEGINNER",
"current_date": datetime.now(timezone.utc),
Expand Down
2 changes: 1 addition & 1 deletion src/backend/app/auth/osm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class AuthUser(BaseModel):

id: int
username: str
profile_img: Optional[str] = None
img_url: Optional[str] = None
role: Optional[UserRole] = UserRole.MAPPER


Expand Down

0 comments on commit e0237b7

Please sign in to comment.