mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25: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) {
|
function(next) {
|
||||||
db.delete('user:' + uid, next);
|
db.delete('user:' + uid, next);
|
||||||
|
},
|
||||||
|
function(next) {
|
||||||
|
db.decrObjectField('global', 'userCount');
|
||||||
}
|
}
|
||||||
], callback);
|
], callback);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user