Permalink
Browse files

Merge pull request #106 from coderunr/patch-3

Insert missing next parameters in dashboard app.
  • Loading branch information...
fzaninotto committed Feb 11, 2013
2 parents db10253 + 7efe481 commit ecb43c1bda961be97d3d05781d34336e72b8df9c
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/dashboard/app.js
View
@@ -62,7 +62,7 @@ app.get('/events', function(req, res) {
res.render('events');
});
-app.get('/checks', function(req, res) {
+app.get('/checks', function(req, res, next) {
Check.find().sort({ isUp: 1, lastChanged: -1 }).exec(function(err, checks) {
if (err) return next(err);
res.render('checks', { info: req.flash('info'), checks: checks });
@@ -130,7 +130,7 @@ app.delete('/checks/:id', function(req, res, next) {
});
});
-app.get('/tags', function(req, res) {
+app.get('/tags', function(req, res, next) {
Tag.find().sort({ name: 1 }).exec(function(err, tags) {
if (err) return next(err);
res.render('tags', { tags: tags });

0 comments on commit ecb43c1

Please sign in to comment.