mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-29 08:07:48 +01:00
remove console.log from post route
This commit is contained in:
@@ -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() });
|
||||
|
||||
Reference in New Issue
Block a user