Changed response for count API

This commit is contained in:
Michael Schmatz 2014-03-15 09:40:58 -07:00
parent 6dcbaddbbd
commit 613439d175

View file

@ -28,10 +28,7 @@ connectToScoringQueue = ->
module.exports.messagesInQueueCount = (req, res) -> module.exports.messagesInQueueCount = (req, res) ->
scoringTaskQueue.totalMessagesInQueue (err, count) -> scoringTaskQueue.totalMessagesInQueue (err, count) ->
if err? then return errors.serverError res, "There was an issue finding the Mongoose count:#{err}" if err? then return errors.serverError res, "There was an issue finding the Mongoose count:#{err}"
response = response = String(count)
point:
number: count
timestamp: Date.now()
res.send(response) res.send(response)
res.end() res.end()