mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
decrease user count when user is deleted
This commit is contained in:
@@ -293,6 +293,9 @@ module.exports = function(User) {
|
||||
},
|
||||
function(next) {
|
||||
db.delete('user:' + uid, next);
|
||||
},
|
||||
function(next) {
|
||||
db.decrObjectField('global', 'userCount');
|
||||
}
|
||||
], callback);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user