mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-28 01:00:59 +01:00
feat(users): add invited_by filed to model user
This commit is contained in:
@@ -349,7 +349,9 @@ exports.userByID = function (req, res, next, id) {
|
||||
});
|
||||
}
|
||||
|
||||
User.findById(id, '-salt -password -providerData').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