Paired with is now properly saved, bonfire challenge framework is almost ready for release

This commit is contained in:
Nathan Leniz
2015-01-24 13:40:58 -05:00
parent 4128b3b765
commit 0ca042a1f0
3 changed files with 3 additions and 4 deletions

2
app.js
View File

@ -310,7 +310,7 @@ app.post('/completed-bonfire/', function (req, res) {
};
if (isCompletedWith) {
User.find({"profile.username": isCompletedWith}, function(err, pairedWith) {
User.findOne({"profile.username": isCompletedWith}, function(err, pairedWith) {
if (err) {
return err;
} else {