From 9cbcfd33975419f3639f6286c5a79c327d3beba9 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Wed, 6 Apr 2022 08:36:20 -0700 Subject: [PATCH] server/client: remove unnecessary console.logs --- client/pages/new/from/[id].tsx | 1 - server/src/lib/middleware/is-admin.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/client/pages/new/from/[id].tsx b/client/pages/new/from/[id].tsx index 314ab3fa..b65266b0 100644 --- a/client/pages/new/from/[id].tsx +++ b/client/pages/new/from/[id].tsx @@ -15,7 +15,6 @@ const NewFromExisting = ({ post: Post, parentId: string }) => { - console.log(parentId, post) return ( diff --git a/server/src/lib/middleware/is-admin.ts b/server/src/lib/middleware/is-admin.ts index 3d50ad70..2a3ef20c 100644 --- a/server/src/lib/middleware/is-admin.ts +++ b/server/src/lib/middleware/is-admin.ts @@ -23,7 +23,6 @@ export default function isAdmin( const authHeader = req.headers["authorization"] const token = authHeader && authHeader.split(" ")[1] if (!token) return res.sendStatus(401) - console.log(config) if (!config.enable_admin) return res.sendStatus(404) jwt.verify(token, config.jwt_secret, async (err: any, user: any) => { if (err) return res.sendStatus(403)