🌟 Code Cleanup

This commit is contained in:
callumok2004
2021-06-21 04:08:43 +01:00
parent baf3452e87
commit 2ef1f088a0
2 changed files with 2 additions and 2 deletions

View File

@@ -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.` })

View File

@@ -22,7 +22,7 @@
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"pages/_document.tsx"
"pages/_document.js"
],
"exclude": [
"node_modules"