mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -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) ->
|
||||
scoringTaskQueue.totalMessagesInQueue (err, count) ->
|
||||
if err? then return errors.serverError res, "There was an issue finding the Mongoose count:#{err}"
|
||||
response =
|
||||
point:
|
||||
number: count
|
||||
timestamp: Date.now()
|
||||
response = String(count)
|
||||
res.send(response)
|
||||
res.end()
|
||||
|
||||
|
|
Loading…
Reference in a new issue