mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-28 01:00:59 +01:00
feat(users): show invited_by user info in account status center and admin manage page
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user