mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: #8385
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user