Remove req.task

This commit is contained in:
Daniel Saewitz 2013-03-22 16:57:34 -04:00
parent 355dde07f4
commit 7591846937

View file

@ -74,7 +74,7 @@ router.get '/user/task/:id', auth, (req, res) ->
###
validateTask = (req, res, next) ->
task = {}
newTask = { type, text, notes, value, up, down, completed } = req.task || req.body
newTask = { type, text, notes, value, up, down, completed } = req.body
# If we're updating, get the task from the user
if req.method is 'PUT' or req.method is 'DELETE'