Skip to content

Commit

Permalink
Update todoListController.js
Browse files Browse the repository at this point in the history
  • Loading branch information
generalgmt authored Jun 25, 2017
1 parent 2515830 commit f9885cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/todoListController.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exports.read_a_task = function(req, res) {
};

exports.update_a_task = function(req, res) {
Task.findOneAndUpdate(req.params.taskId, req.body, {new: true}, function(err, task) {
Task.findOneAndUpdate({_id:req.params.taskId}, req.body, {new: true}, function(err, task) {
if (err)
res.send(err);
res.json(task);
Expand Down

0 comments on commit f9885cd

Please sign in to comment.