Lowercase username try #3 (#821)

3 times is a charm.. can't believe this took 3 tries.
pull/818/head^2
Alex van Andel 2021-09-29 15:58:25 +01:00 committed by GitHub
parent e7314257c3
commit a30381f229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ export const bookingRouter = createRouter().query("userEventTypes", {
const user = await prisma.user.findUnique({
where: {
username,
username: username.toLowerCase(),
},
select: {
id: true,