mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
api_v2 bug fix
This commit is contained in:
parent
413abdb345
commit
cdc7b06f92
1 changed files with 1 additions and 1 deletions
|
|
@ -179,7 +179,7 @@ router.post '/user/tasks', auth, (req, res) ->
|
|||
res.json 201, tasks
|
||||
|
||||
addTask = module.exports.addTask = (model, task) ->
|
||||
type = task.type || 'habit'{
|
||||
type = task.type || 'habit'
|
||||
model.ref '_user', req.user
|
||||
model.refList "_#{type}List", "_user.tasks", "_user.#{type}Ids"
|
||||
model.at("_#{type}List").push task
|
||||
|
|
|
|||
Loading…
Reference in a new issue