add username/email to user-delete event

This commit is contained in:
Barış Soner Uşaklı
2018-10-04 11:08:01 -04:00
parent f9c882cb1d
commit 1bea247748
4 changed files with 11 additions and 7 deletions

View File

@@ -163,12 +163,14 @@ function deleteUsers(socket, uids, method, callback) {
function (next) {
method(uid, next);
},
function (next) {
function (userData, next) {
events.log({
type: 'user-delete',
uid: socket.uid,
targetUid: uid,
ip: socket.ip,
username: userData.username,
email: userData.email,
}, next);
},
function (next) {