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 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.