From 942cc4b132cdbd13994d4fd4f6f24d50dc2834c5 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 8 Jun 2020 13:41:35 -0400 Subject: [PATCH] fix: #8385 --- src/socket.io/admin/user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); };