chore: add docs to GetUserByEmail
This commit is contained in:
parent
418aeb5f6c
commit
dd0bef7590
1 changed files with 1 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ func (s *Store) GetUserByID(ctx context.Context, id string) (*store.User, error)
|
||||||
return u, nil
|
return u, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetUserByEmail returns the user with the given email.
|
||||||
func (s *Store) GetUserByEmail(ctx context.Context, email string) (*store.User, error) {
|
func (s *Store) GetUserByEmail(ctx context.Context, email string) (*store.User, error) {
|
||||||
row := s.db.QueryRowContext(ctx, s.q.GetUserByEmail, email)
|
row := s.db.QueryRowContext(ctx, s.q.GetUserByEmail, email)
|
||||||
u, err := s.scanUser(row)
|
u, err := s.scanUser(row)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue