From 43206c304ef9aa67dc7a546b57fe30742fd717ff Mon Sep 17 00:00:00 2001 From: ngn <78868991+ngn13@users.noreply.github.com> Date: Mon, 10 Jul 2023 21:15:23 +0300 Subject: [PATCH] bug fix lul --- api/routes/blog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })