Skip to content

Scheduling infrastructure for absolutely everyone.

fix: HTTP 404 with uppercase username (#2045)

Louis Haftmann6e8fbc280f01
diff --git a/apps/web/pages/[user]/book.tsx b/apps/web/pages/[user]/book.tsx
index 67e9087ac71..f98b70af442 100644
--- a/apps/web/pages/[user]/book.tsx
+++ b/apps/web/pages/[user]/book.tsx
@@ -26,7 +26,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
const ssr = await ssrInit(context);
const user = await prisma.user.findUnique({
where: {
- username: asStringOrThrow(context.query.user),
+ username: asStringOrThrow(context.query.user).toLowerCase(),
},
select: {
id: true,