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 16, 2024
1 parent b41b01a commit 53097a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/user_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def get_user_by_id(user_id: str):
""",
{"user_id": user_id}
)

if not result or len(result) == 0:
raise HTTPException(status_code=404, detail="User not found")
return result[0]
Expand Down

0 comments on commit 53097a8

Please sign in to comment.