Skip to content

Commit

Permalink
fix: Convert emails to lowercase on request to match insert (#185)
Browse files Browse the repository at this point in the history
Currently E2E tests are failing as `[email protected]`
!== `[email protected]` 🤦

See #175
  • Loading branch information
DafyddLlyr authored Nov 2, 2023
1 parent 330e78c commit c923d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/requests/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async function getByEmail(
}
}
`,
{ email },
{ email: email.toLowerCase() },
);
return users?.[0] || null;
}
Expand Down

0 comments on commit c923d21

Please sign in to comment.