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
|
collection = req.body.collection
|
||||||
if collection isnt 'level.sessions'
|
if collection isnt 'level.sessions'
|
||||||
return @sendBadInputError(res, 'Only doing level session achievements for now.')
|
return @sendBadInputError(res, 'Only doing level session achievements for now.')
|
||||||
|
#model = mongoose.modelNameByCollection(collection)
|
||||||
model = mongoose.modelNameByCollection(collection)
|
else
|
||||||
|
model = LevelSession
|
||||||
|
|
||||||
async.parallel({
|
async.parallel({
|
||||||
achievement: (callback) ->
|
achievement: (callback) ->
|
||||||
|
|
Reference in a new issue