mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 20:12:19 +00:00
Remove req.task
This commit is contained in:
parent
355dde07f4
commit
7591846937
1 changed files with 1 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue