fix: HTTP 404 with uppercase username (#2045)

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Louis HaftmannandPeer Richelsen authored and GitHub committed 2022-03-03 16:42:30 +00:00
1 parent 52e6711d51
commit 6e8fbc280f
1 file changed
+1 -1
+1 -1
View File
@@ -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,