feat(users): show invited_by user info in account status center and admin manage page

This commit is contained in:
OldHawk
2017-09-13 15:05:28 +08:00
parent 09f1fbbb3b
commit 201d54d18a
7 changed files with 28 additions and 4 deletions

View File

@@ -349,9 +349,7 @@ exports.userByID = function (req, res, next, id) {
});
}
User.findById(id, '-salt -password -providerData')
.populate('invited_by', 'username displayName profileImageURL')
.exec(function (err, user) {
User.findById(id, '-salt -password -providerData').populate('invited_by', 'username displayName profileImageURL').exec(function (err, user) {
if (err) {
return next(err);
} else if (!user) {