       if err is 'shouldn\'t continue'
         markSessionAsDoneRanking originalSessionID, (err) ->
           if err? then return sendResponseObject req, res, {'error': 'There was an error marking the session as done ranking'}
-          sendResponseObject req, res, {'message': 'The scores were updated successfully, person lost so no more games are being inserted!'}
+          sendResponseObject req, res, {message: 'The scores were updated successfully, person lost so no more games are being inserted!'}
       else if err is 'no session was found'
         markSessionAsDoneRanking originalSessionID, (err) ->
           if err? then return sendResponseObject req, res, {'error': 'There was an error marking the session as done ranking'}
-          sendResponseObject req, res, {'message': 'There were no more games to rank (game is at top)!'}
+          sendResponseObject req, res, {message: 'There were no more games to rank (game is at top)!'}
       else if err?
         errors.serverError res, "There was an error:#{err}"
       else
-        sendResponseObject req, res, {'message': 'The scores were updated successfully and more games were sent to the queue!'}
+        sendResponseObject req, res, {message: 'The scores were updated successfully and more games were sent to the queue!'}
   catch e
     errors.serverError res, 'There was an error processing the task result!'
 

    if taskPairError? then return callback taskPairError
    #console.log 'Sent task pairs to the queue!'
    #console.log taskPairs
    callback null, {'message': 'All task pairs were succesfully sent to the queue'}

module.exports.dispatchTaskToConsumer = (req, res) ->
  yetiGuru = {}

    return callback err, null unless startDate
    now = new Date()
    interval = now - startDate
    cutoff = new Date now - Math.pow(Math.random(), 4) * interval
    queryParams.submitDate = $gte: startDate, $lt: cutoff
    selection = 'team totalScore transpiledCode submittedCodeLanguage teamSpells levelID creatorName creator submitDate'
    LevelSession.findOne(queryParams).sort(submitDate: -1).select(selection).lean().exec (err, session) ->
