mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
api: allow PUT /user to update tasks for now, will change lager
This commit is contained in:
parent
96b4f57adc
commit
5b71e93fb5
1 changed files with 1 additions and 1 deletions
|
|
@ -315,7 +315,7 @@ api.updateUser = (req, res, next) ->
|
|||
|
||||
# FIXME - one-by-one we want to widdle down this list, instead replacing each needed set path with API operations
|
||||
# Note: custom is for 3rd party apps
|
||||
acceptableAttrs = 'achievements filters flags invitations items lastCron party preferences profile stats tags custom'.split(' ')
|
||||
acceptableAttrs = 'tasks achievements filters flags invitations items lastCron party preferences profile stats tags custom'.split(' ')
|
||||
series = []
|
||||
_.each req.body, (v, k) ->
|
||||
if (_.find acceptableAttrs, (attr)-> k.indexOf(attr) is 0)?
|
||||
|
|
|
|||
Loading…
Reference in a new issue