Browse Source

🐛 fix read_user_by_id docstring (#4)

Fix incorrectly documented as "Get a specific user by username (email)". Changed to "Get a specific user by id".
pull/13907/head
Matthew Clarkson 6 years ago
committed by Sebastián Ramírez
parent
commit
f947ba8749
  1. 2
      {{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/user.py

2
{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/user.py

@ -123,7 +123,7 @@ def read_user_by_id(
db: Session = Depends(get_db),
):
"""
Get a specific user by username (email)
Get a specific user by id
"""
user = crud.user.get(db, user_id=user_id)
if user == current_user:

Loading…
Cancel
Save