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

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() });