asdas
This commit is contained in:
parent
5aa147a373
commit
7aaeb91add
1 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue