Lowercase username try #3 (#821)

3 times is a charm.. can't believe this took 3 tries.
This commit is contained in:
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

View file

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