diff --git a/index.js b/index.js index 61c4c49..0ff2bae 100644 --- a/index.js +++ b/index.js @@ -114,7 +114,7 @@ function diff(current, checked) { app.post("/updates/:project(\\w+)", (req, res) => { let project_id = req.params['project']; - const body = req.body != undefined ? req.body : ""; + const body = typeof req.body == "string" ? req.body : String(req.body); console.log(req.body); console.log(`${req.body}, ${typeof req.body}`); console.log(`${body}`);