Paired with is now properly saved, bonfire challenge framework is almost ready for release
This commit is contained in:
2
app.js
2
app.js
@ -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 {
|
||||
|
Reference in New Issue
Block a user