From 2ef1f088a0033e5251f6db888eac7692679f385c Mon Sep 17 00:00:00 2001 From: callumok2004 Date: Mon, 21 Jun 2021 04:08:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=9F=20Code=20Cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/api/[...id].ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/api/[...id].ts b/pages/api/[...id].ts index 4772321..b408e5d 100644 --- a/pages/api/[...id].ts +++ b/pages/api/[...id].ts @@ -25,7 +25,7 @@ export default async function handler( res.setHeader("content-security-policy", "default-src 'none'; img-src * data:; style-src 'unsafe-inline'"); try { - lanyardData = (await axios.get(`https://api.lanyard.rest/v1/users/${userid}`)).data; + lanyardData = await axios.get(`https://api.lanyard.rest/v1/users/${userid}`); } catch (e) { console.log(e) res.send({ error: `Something went wrong! If everything looks correct and this still occurs, please contact @cnraddd on Twitter.` }) diff --git a/tsconfig.json b/tsconfig.json index fefbdbf..fd21301 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,7 +22,7 @@ "next-env.d.ts", "**/*.ts", "**/*.tsx", - "pages/_document.tsx" + "pages/_document.js" ], "exclude": [ "node_modules"