cheesesteak

This commit is contained in:
jane 2021-06-06 01:17:24 -04:00
parent ddd2f1dfaf
commit a5c89496b1

View file

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