Fix earned acheivements

This commit is contained in:
Rob 2016-07-25 16:12:14 -07:00
parent 34310642c7
commit d292e180d2

View file

@ -51,8 +51,9 @@ class EarnedAchievementHandler extends Handler
collection = req.body.collection
if collection isnt 'level.sessions'
return @sendBadInputError(res, 'Only doing level session achievements for now.')
model = mongoose.modelNameByCollection(collection)
#model = mongoose.modelNameByCollection(collection)
else
model = LevelSession
async.parallel({
achievement: (callback) ->