server/client: remove unnecessary console.logs
This commit is contained in:
parent
32cc1f861e
commit
9cbcfd3397
2 changed files with 0 additions and 2 deletions
|
@ -15,7 +15,6 @@ const NewFromExisting = ({
|
||||||
post: Post,
|
post: Post,
|
||||||
parentId: string
|
parentId: string
|
||||||
}) => {
|
}) => {
|
||||||
console.log(parentId, post)
|
|
||||||
return (
|
return (
|
||||||
<Page className={styles.wrapper}>
|
<Page className={styles.wrapper}>
|
||||||
<PageSeo title="Create a new Drift" />
|
<PageSeo title="Create a new Drift" />
|
||||||
|
|
|
@ -23,7 +23,6 @@ export default function isAdmin(
|
||||||
const authHeader = req.headers["authorization"]
|
const authHeader = req.headers["authorization"]
|
||||||
const token = authHeader && authHeader.split(" ")[1]
|
const token = authHeader && authHeader.split(" ")[1]
|
||||||
if (!token) return res.sendStatus(401)
|
if (!token) return res.sendStatus(401)
|
||||||
console.log(config)
|
|
||||||
if (!config.enable_admin) return res.sendStatus(404)
|
if (!config.enable_admin) return res.sendStatus(404)
|
||||||
jwt.verify(token, config.jwt_secret, async (err: any, user: any) => {
|
jwt.verify(token, config.jwt_secret, async (err: any, user: any) => {
|
||||||
if (err) return res.sendStatus(403)
|
if (err) return res.sendStatus(403)
|
||||||
|
|
Loading…
Reference in a new issue