chore: add docs to GetUserByEmail

This commit is contained in:
juancwu 2026-05-06 00:39:06 +00:00
commit dd0bef7590

View file

@ -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)