Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update the route handler for `/stats`

Include the missing `next` function callback
  • Loading branch information...
commit 0d8ebe27390a8b4c19690dec81c59996db4deafc 1 parent ba4e319
@mohnish mohnish authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  routes/main.js
View
3  routes/main.js
@@ -1,5 +1,4 @@
-
var rasterize = require('../lib/rasterize')
, ratelimit = require('../lib/ratelimit')
, Batch = require('../lib/batch')
@@ -23,7 +22,7 @@ app.get('/', function(req, res, next){
* GET stats.
*/
-app.get('/stats', function(req, res){
+app.get('/stats', function(req, res, next){
db.hgetall('screenshot:stats', function(err, obj){
if (err) return next(err);
res.send(obj);
Please sign in to comment.
Something went wrong with that request. Please try again.