im so confused

This commit is contained in:
jane 2021-06-06 01:36:37 -04:00
parent 6d3613ddd9
commit 233b86bf4f

View file

@ -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}`);