Permalink
Browse files

Update the route handler for `/stats`

Include the missing `next` function callback
  • Loading branch information...
1 parent ba4e319 commit 0d8ebe27390a8b4c19690dec81c59996db4deafc @mohnish mohnish committed Dec 25, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 routes/main.js
View
@@ -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);

0 comments on commit 0d8ebe2

Please sign in to comment.