Add callback to and settimeout functions to prevent race conditions with write

This commit is contained in:
Nathan Leniz
2015-01-28 02:22:12 -05:00
parent adf1d30fee
commit 7ea08f3074
3 changed files with 26 additions and 12 deletions

View File

@@ -95,7 +95,6 @@ exports.returnIndividualBonfire = function(req, res, next) {
next(err);
}
if (bonfire.length < 1) {
debug('Full Bonfire', bonfire);
req.flash('errors', {
msg: "404: We couldn't find a bonfire with that name. Please double check the name."
});