server/client: remove unnecessary console.logs

This commit is contained in:
Max Leiter 2022-04-06 08:36:20 -07:00
parent 32cc1f861e
commit 9cbcfd3397
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A3512F2F2F17EBDA
2 changed files with 0 additions and 2 deletions

View file

@ -15,7 +15,6 @@ const NewFromExisting = ({
post: Post,
parentId: string
}) => {
console.log(parentId, post)
return (
<Page className={styles.wrapper}>
<PageSeo title="Create a new Drift" />

View file

@ -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)