This commit is contained in:
jane 2021-06-06 00:25:18 -04:00
parent f32c5a3f41
commit b145d6e538

View file

@ -103,7 +103,7 @@ function diff(current, checked) {
app.post("/updates/:project(\\w+)", (req, res) => {
let project_id = req.params['project'];
const body = req.body || "";
const body = String(req.body) || "";
let adjustedBody = body.replace(/\r/, "");
let indexes = get_indexes(project_id);
let difference = diff(indexes, adjustedBody);