mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-20 10:51:42 +01:00
feat(users): populate invited_by user info when login
This commit is contained in:
@@ -19,7 +19,7 @@ exports.userByID = function (req, res, next, id) {
|
||||
|
||||
User.findOne({
|
||||
_id: id
|
||||
}).exec(function (err, user) {
|
||||
}).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