mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Changed response for count API
This commit is contained in:
parent
6dcbaddbbd
commit
613439d175
1 changed files with 1 additions and 4 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue