Major refactor of bonfireFramework to differentiate tests, refactor tests in Bonfire schema to remove public/private tests and only have tests, fire modal on successful run of all tests in bonfire/show, added bonfiresHash to User schema, and we should have committed a while ago because there is too much too list
This commit is contained in:
@@ -62,16 +62,13 @@ exports.returnBonfire = function(req, res, next) {
|
||||
number: bonfire[bonfireNumber].bonfireNumber,
|
||||
difficulty: bonfire[bonfireNumber].difficulty,
|
||||
description: bonfire[bonfireNumber].description,
|
||||
publicTests: bonfire[bonfireNumber].publicTests,
|
||||
privateTests: bonfire[bonfireNumber].privateTests,
|
||||
tests: bonfire[bonfireNumber].tests,
|
||||
challengeSeed: bonfire[bonfireNumber].challengeSeed,
|
||||
challengeEntryPoint: bonfire[bonfireNumber].challengeEntryPoint,
|
||||
challengeEntryPointNegate: bonfire[bonfireNumber].challengeEntryPointNegate,
|
||||
|
||||
//cc: req.user ? req.user.bonfiresHash : undefined,
|
||||
//points: req.user ? req.user.points : undefined,
|
||||
//verb: verbs[Math.floor(Math.random() * verbs.length)],
|
||||
//phrase: phrases[Math.floor(Math.random() * phrases.length)],
|
||||
cc: req.user ? req.user.bonfiresHash : undefined,
|
||||
points: req.user ? req.user.points : undefined,
|
||||
verb: verbs[Math.floor(Math.random() * verbs.length)],
|
||||
phrase: phrases[Math.floor(Math.random() * phrases.length)],
|
||||
bonfires: bonfire
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user