Permalink
Browse files

Insert missing next parameters in dashboard app.

  • Loading branch information...
coderunr committed Feb 9, 2013
1 parent 46e7713 commit 7efe481e37875a8c8af29d8750e3e4c218cbc540
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 7efe481

Please sign in to comment.