This commit is contained in:
jane 2021-06-06 02:16:19 -04:00
parent 5aa147a373
commit 7aaeb91add

View file

@ -114,9 +114,9 @@ function diff(current, checked) {
app.post("/updates/:project(\\w+)", (req, res) => {
let project_id = req.params['project'];
const body = String(Object.keys(req.body)[0]);
console.log(req.body);
console.log(`${req.body}, ${typeof req.body}`);
console.log(`${body}`);
// console.log(req.body);
// console.log(`${req.body}, ${typeof req.body}`);
// console.log(`${body}`);
let adjustedBody = body.replace(/\r/, "");
let indexes = get_indexes(project_id);
let difference = diff(indexes, adjustedBody);