diff --git a/src/api/users.js b/src/api/users.js index 9b16717aac..b695d1f848 100644 --- a/src/api/users.js +++ b/src/api/users.js @@ -87,7 +87,6 @@ usersAPI.delete = async function (caller, data) { }; usersAPI.deleteMany = async function (caller, data) { - console.log(data.uids); if (await canDeleteUids(data.uids)) { await Promise.all(data.uids.map(uid => processDeletion(uid, caller))); } diff --git a/src/socket.io/user/ban.js b/src/socket.io/user/ban.js index f2a5b447a6..77df1d78a9 100644 --- a/src/socket.io/user/ban.js +++ b/src/socket.io/user/ban.js @@ -7,7 +7,10 @@ module.exports = function (SocketUser) { SocketUser.banUsers = async function (socket, data) { websockets.warnDeprecated(socket, 'PUT /api/v3/users/:uid/ban'); await Promise.all(data.uids.map(async (uid) => { - await api.users.ban(socket, { uid }); + const payload = { ...data }; + delete payload.uids; + payload.uid = uid; + await api.users.ban(socket, payload); })); };