mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Fix earned acheivements
This commit is contained in:
parent
34310642c7
commit
d292e180d2
1 changed files with 3 additions and 2 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Reference in a new issue