mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
could use async.apply here hm
This commit is contained in:
@@ -18,14 +18,11 @@ module.exports = function(User) {
|
||||
},
|
||||
function(next) {
|
||||
deleteTopics(uid, next);
|
||||
},
|
||||
function(next) {
|
||||
deleteAccount(uid, next);
|
||||
}
|
||||
], function(err) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
deleteAccount(uid, callback);
|
||||
});
|
||||
], callback);
|
||||
};
|
||||
|
||||
function deletePosts(uid, callback) {
|
||||
|
||||
Reference in New Issue
Block a user