Merge branch 'master' into production

This commit is contained in:
Nick Winter 2014-03-11 21:48:25 -07:00
commit 3b536eb673

View file

@ -241,7 +241,7 @@ findNearestBetterSessionID = (levelOriginalID, levelMajorVersion, sessionID, ses
retrieveAllOpponentSessionIDs = (sessionID, cb) -> retrieveAllOpponentSessionIDs = (sessionID, cb) ->
query = LevelSession.findOne({"_id":sessionID}) query = LevelSession.findOne({"_id":sessionID})
.select('matches.opponents.sessionID.submitDate') .select('matches.opponents.sessionID matches.date submitDate')
.lean() .lean()
query.exec (err, session) -> query.exec (err, session) ->
if err? then return cb err, null if err? then return cb err, null