Skip to content

Commit

Permalink
FIx typo in getuserbyemail db method query
Browse files Browse the repository at this point in the history
This resolves #600
  • Loading branch information
StevenWeathers committed Sep 4, 2024
1 parent 37d26e1 commit f422b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (d *Service) GetUserByEmail(ctx context.Context, UserEmail string) (*thunde

err := d.DB.QueryRowContext(ctx,
`SELECT u.id, u.name, u.email, u.type, c.verified, u.disabled
FROM thunderdome.auth_crednetial c
FROM thunderdome.auth_credential c
JOIN thunderdome.users u ON c.user_id = u.id
WHERE c.email = $1`,
db.SanitizeEmail(UserEmail),
Expand Down

0 comments on commit f422b66

Please sign in to comment.