This commit is contained in:
terakilobyte
2015-05-22 08:52:03 -04:00
12 changed files with 663 additions and 469 deletions

View File

@@ -129,7 +129,7 @@ exports.returnIndividualStory = function(req, res, next) {
if (story.length < 1) {
req.flash('errors', {
msg: "404: We couldn't find a story with that name. " +
"Please double check the name."
'Please double check the name.'
});
return res.redirect('/news/');
@@ -149,7 +149,7 @@ exports.returnIndividualStory = function(req, res, next) {
if (votedObj.length > 0) {
userVoted = true;
}
} catch(err) {
} catch(e) {
userVoted = false;
}
res.render('stories/index', {