From 4fcca641b6b9513568899fd7a2a7dd1ca1d10ad5 Mon Sep 17 00:00:00 2001 From: Nathan Leniz Date: Tue, 27 Jan 2015 22:46:18 -0500 Subject: [PATCH] Adding name to passed variables for generated bonfires --- app.js | 2 -- controllers/bonfire.js | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app.js b/app.js index e5503ad7df6..e3411874e66 100644 --- a/app.js +++ b/app.js @@ -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) diff --git a/controllers/bonfire.js b/controllers/bonfire.js index e36285a1990..4b85953927a 100644 --- a/controllers/bonfire.js +++ b/controllers/bonfire.js @@ -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),