diff --git a/server/handlers/earned_achievement_handler.coffee b/server/handlers/earned_achievement_handler.coffee index 4a609d5a9..d5e2ef04d 100644 --- a/server/handlers/earned_achievement_handler.coffee +++ b/server/handlers/earned_achievement_handler.coffee @@ -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) ->