remove console.log from post route

This commit is contained in:
2018-05-24 19:44:26 +03:00
parent 3a8df79bf5
commit 6598874331
3 changed files with 8 additions and 9 deletions

12
package-lock.json generated
View File

@@ -2187,9 +2187,9 @@
}
},
"eslint-plugin-jest": {
"version": "21.15.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-21.15.1.tgz",
"integrity": "sha512-Op9AFHQXFXD0pWubu2v7K7NydSEBopIYVyZM2CxbiIoVXMa6AnqJt+v+HkBxbwS5aYvPQYoHthZO18A4QVeF1Q==",
"version": "21.15.2",
"resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-21.15.2.tgz",
"integrity": "sha512-XX0/g2F2iDnX36Ez4j5Sd8IzJj2dbDBqOxitfGD+uXyiEVECJAoRnf9eQnkzyXFVKB7DALx82ZqgqCEfeLpY7w==",
"dev": true
},
"eslint-restricted-globals": {
@@ -5126,9 +5126,9 @@
}
},
"nodemon": {
"version": "1.17.4",
"resolved": "https://registry.npmjs.org/nodemon/-/nodemon-1.17.4.tgz",
"integrity": "sha512-ZQcvYd8I4sWhbLoqImIiCPBTaHcq3YRRQXYwePchFK3Zk5+LT8HYQR4urf1UkSDiY/gSxjq6ao34RxJp7rRe1w==",
"version": "1.17.5",
"resolved": "https://registry.npmjs.org/nodemon/-/nodemon-1.17.5.tgz",
"integrity": "sha512-FG2mWJU1Y58a9ktgMJ/RZpsiPz3b7ge77t/okZHEa4NbrlXGKZ8s1A6Q+C7+JPXohAfcPALRwvxcAn8S874pmw==",
"dev": true,
"requires": {
"chokidar": "^2.0.2",

View File

@@ -26,9 +26,9 @@
"eslint-config-airbnb-base": "^12.1.0",
"eslint-config-node": "^2.0.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jest": "^21.15.1",
"eslint-plugin-jest": "^21.15.2",
"jest": "^22.4.4",
"nodemon": "^1.17.4",
"nodemon": "^1.17.5",
"supertest": "^3.1.0"
},
"jest": {

View File

@@ -24,7 +24,6 @@ router.post(
asyncHelper(async (req, res) => {
const { listId } = res.locals || req.body;
const { text } = req.body;
console.log(req.body);
const todo = new Todo({ text, list: listId });
await todo.save();
res.json({ success: true, data: todo.toJson() });