api: allow PUT /user to update tasks for now, will change lager

This commit is contained in:
Tyler Renelle 2013-08-11 00:56:47 -04:00
parent 96b4f57adc
commit 5b71e93fb5

View file

@ -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)?