Update username for stories and comments on username change in profile

This commit is contained in:
Nathan Leniz
2015-03-09 11:59:50 +09:00
parent ca440c53f8
commit 3b3de541b3
2 changed files with 4 additions and 2 deletions

View File

@ -350,7 +350,7 @@ exports.postUpdateProfile = function(req, res, next) {
}
req.flash('success', {msg: 'Profile information updated.'});
res.redirect('/account');
resources.updateUserStoryPictures(user._id.toString(), user.profile.picture);
resources.updateUserStoryPictures(user._id.toString(), user.profile.picture, user.profile.username);
});
});
});