Skip to content

Node.js based forum software built for the modern web

fixing user deletion, missing cb

barisusakliac88b5fc25ac
diff --git a/src/user/delete.js b/src/user/delete.js
index 368a940341..85ddd14639 100644
--- a/src/user/delete.js
+++ b/src/user/delete.js
@@ -295,7 +295,7 @@ module.exports = function(User) {
db.delete('user:' + uid, next);
},
function(next) {
- db.decrObjectField('global', 'userCount');
+ db.decrObjectField('global', 'userCount', next);
}
], callback);
});