mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 01:07:42 -05:00
update for active users
This commit is contained in:
@@ -35,7 +35,7 @@ exports.listActiveUsers = async function (req,res,next) {
|
||||
|
||||
if (!users.hasOwnProperty(system.userId.toString())) {
|
||||
const user = await User.findById(system.userId, "_id email firstName lastName lastLogin");
|
||||
users[system.userId.toString()] = user.email;
|
||||
users[system.userId.toString()] = { email: user.email, firstName: user.firstName, lastName: user.lastName };
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user