From 1256a33304cff66482e7b1dc6f89b282fffc2992 Mon Sep 17 00:00:00 2001 From: ChefKai <74599990+ChefKai@users.noreply.github.com> Date: Thu, 28 Jan 2021 11:07:59 +0100 Subject: [PATCH] fix: Username casing (#23) --- api/users/index.ts | 3 ++- api/users/register.ts | 1 + utils/index.ts | 2 +- utils/schemas/index.ts | 4 ++++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/api/users/index.ts b/api/users/index.ts index 2e02d080..9875af77 100644 --- a/api/users/index.ts +++ b/api/users/index.ts @@ -1,4 +1,5 @@ import { NowRequest, NowResponse } from "@vercel/node"; +import { toChecksumAddress } from "ethereumjs-util"; import { getModel } from "../../utils/mongo"; export default async (req: NowRequest, res: NowResponse): Promise => { @@ -16,7 +17,7 @@ export default async (req: NowRequest, res: NowResponse): Promise