im so confused
This commit is contained in:
parent
6d3613ddd9
commit
233b86bf4f
1 changed files with 1 additions and 1 deletions
2
index.js
2
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}`);
|
||||
|
|
Loading…
Reference in a new issue