Adding name to passed variables for generated bonfires

pull/52/head
Nathan Leniz 2015-01-27 22:46:18 -05:00
parent 5294462e4c
commit 4fcca641b6
2 changed files with 1 additions and 2 deletions

2
app.js
View File

@ -304,8 +304,6 @@ app.post('/completed-bonfire/', function (req, res) {
}
pairedWith = pairedWith.pop();
//debug('This is paired with', Object.keys(pairedWith));
debug('This is paired with\'s uncompleted bonfires array', pairedWith.uncompletedBonfires);
index = pairedWith.uncompletedBonfires.indexOf(bonfireHash);
if (index > -1) {
pairedWith.uncompletedBonfires.splice(index,1)

View File

@ -179,6 +179,7 @@ exports.testBonfire = function(req, res) {
res.render('bonfire/show', {
completedWith: null,
title: bonfireName,
name: bonfireName,
difficulty: +bonfireDifficulty,
brief: bonfireDescription[0],
details: bonfireDescription.slice(1),