Skip to content

Commit

Permalink
Merge pull request #141 from shin064/fix/friend
Browse files Browse the repository at this point in the history
[fix] fixes "test" user automatically added to friends list
  • Loading branch information
c9rl committed Feb 11, 2016
2 parents d63443c + 30f0b7c commit b95d1c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/routes/addfriendRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ router.put('/',function(req,res){
res.send(err);
}
console.log('found user: ',username);
delete user.friends['test'];
delete user.friends['fuy7'];
user.friends[friendname]=true;
user.markModified('friends');
user.save(function(err,user){
Expand Down
2 changes: 1 addition & 1 deletion server/routes/signupRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ router.post('/', function(req, res) {
lastname: lastname,
email: email,
categories: {test:'test'},
friends: {test:false},
friends: {fuy7:false},
beenTo: {test:false},
gravatarUrl: gravatarUrl,
searchTerm: username+firstname+lastname,
Expand Down

0 comments on commit b95d1c9

Please sign in to comment.