Fixing up more bonfires

This commit is contained in:
Nathan Leniz
2015-02-16 00:03:35 -05:00
parent a277305e90
commit d0c2f6ccca
2 changed files with 7 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ exports.returnIndividualBonfire = function(req, res, next) {
return res.redirect('/bonfires');
}
bonfire = bonfire.pop()
bonfire = bonfire.pop();
var dashedNameFull = bonfire.name.toLowerCase().replace(/\s/g, '-');
if (dashedNameFull != dashedName) {
return res.redirect('../bonfires/' + dashedNameFull);
@@ -113,7 +113,6 @@ exports.returnIndividualBonfire = function(req, res, next) {
bonfireHash: bonfire._id
});
});
};