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) {
|
function(next) {
|
||||||
deleteTopics(uid, next);
|
deleteTopics(uid, next);
|
||||||
|
},
|
||||||
|
function(next) {
|
||||||
|
deleteAccount(uid, next);
|
||||||
}
|
}
|
||||||
], function(err) {
|
], callback);
|
||||||
if (err) {
|
|
||||||
return callback(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
deleteAccount(uid, callback);
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function deletePosts(uid, callback) {
|
function deletePosts(uid, callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user