| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -85,8 +85,7 @@ app.get('/not_authorized', function (req, res) { | |||
| 85 | 85 | }); | |
| 86 | 86 | ||
| 87 | 87 | handleError = function (err, res) { | |
| 88 | - res.writeHead(500, {'Content-Type': 'text/html'}); | ||
| 89 | - res.render('error', { locals: { err: err } }); | ||
| 88 | + res.render('error', { err: err }); | ||
| 90 | 89 | }; | |
| 91 | 90 | ||
| 92 | 91 | // People Related Routes | |
@@ -244,7 +243,7 @@ app.get('/people/getGithubProjects/:ghid', bacAuth.doAuth, function (req, res) { | |||
| 244 | 243 | }); | |
| 245 | 244 | ||
| 246 | 245 | app.get('/people', function (req, res) { | |
| 247 | - Person.find({}, [], {sort: {'name': 1}}, function (err, people) { | ||
| 246 | + Person.find({}, {}, {sort: 'name'}, function (err, people) { | ||
| 248 | 247 | if (err) { | |
| 249 | 248 | handleError(err, res); | |
| 250 | 249 | } else { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments