diff --git a/src/socket.io/admin/user.js b/src/socket.io/admin/user.js index 05a7e8cc27..e9a7994ee3 100644 --- a/src/socket.io/admin/user.js +++ b/src/socket.io/admin/user.js @@ -122,7 +122,7 @@ User.forcePasswordReset = async function (socket, uids) { User.deleteUsers = async function (socket, uids) { deleteUsers(socket, uids, async function (uid) { - await user.deleteAccount(uid); + return await user.deleteAccount(uid); }); }; @@ -142,7 +142,7 @@ User.deleteUsersContent = async function (socket, uids) { User.deleteUsersAndContent = async function (socket, uids) { deleteUsers(socket, uids, async function (uid) { - await user.delete(socket.uid, uid); + return await user.delete(socket.uid, uid); }); };