Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Insert missing next parameters in dashboard app.

  • Loading branch information...
commit 7efe481e37875a8c8af29d8750e3e4c218cbc540 1 parent 46e7713
@coderunr coderunr authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/dashboard/app.js
View
4 app/dashboard/app.js
@@ -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 });
Please sign in to comment.
Something went wrong with that request. Please try again.