From d9dc9bd5a8093a421dba2f85b1f2194a7b38f1bb Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Thu, 21 Jan 2021 15:48:44 +0200 Subject: [PATCH] fix typerror --- pages/api/builds/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pages/api/builds/index.ts b/pages/api/builds/index.ts index fbd724e6f..8e5705fe3 100644 --- a/pages/api/builds/index.ts +++ b/pages/api/builds/index.ts @@ -57,11 +57,7 @@ const buildHandler = async (req: NextApiRequest, res: NextApiResponse) => { ), jpn: postsJpBuilds, top500: await hasTop500WithTheWeapon(user.id, parsed.data.weapon), - user: { - connect: { - id: user.id, - }, - }, + userId: user.id, }, });