bug fix v2 (lul)
This commit is contained in:
parent
43206c304e
commit
6bde08cf67
@ -68,7 +68,7 @@ blog.post("/add", async (req, res) => {
|
|||||||
typeof title !== "string" ||
|
typeof title !== "string" ||
|
||||||
typeof author !== "string" ||
|
typeof author !== "string" ||
|
||||||
typeof content !== "string" ||
|
typeof content !== "string" ||
|
||||||
typeof priv !== boolean
|
typeof priv !== "boolean"
|
||||||
)
|
)
|
||||||
return res.json({ error: 1 })
|
return res.json({ error: 1 })
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user