You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current signature is def get_user_by_email(db: Session, email: str) -> schemas.UserBase: but I believe this to be incorrect. It should be def get_user_by_email(db: Session, email: str) -> schemas.User:. The reason is that this function returns the DB row which includes the id as part of the model.
The text was updated successfully, but these errors were encountered:
The current signature is
def get_user_by_email(db: Session, email: str) -> schemas.UserBase:
but I believe this to be incorrect. It should bedef get_user_by_email(db: Session, email: str) -> schemas.User:
. The reason is that this function returns the DB row which includes theid
as part of the model.The text was updated successfully, but these errors were encountered: