diff --git a/api/routes/blog.js b/api/routes/blog.js index 9ca056a..bca0ecb 100644 --- a/api/routes/blog.js +++ b/api/routes/blog.js @@ -68,7 +68,7 @@ blog.post("/add", async (req, res) => { typeof title !== "string" || typeof author !== "string" || typeof content !== "string" || - typeof priv !== "string" + typeof priv !== boolean ) return res.json({ error: 1 })