Skip to content

Node.js based forum software built for the modern web

could use async.apply here hm

barisusakli5b681678b125
diff --git a/src/user/delete.js b/src/user/delete.js
index 8ab14c4cea..7a91603438 100644
--- a/src/user/delete.js
+++ b/src/user/delete.js
@@ -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) {