decrease user count when user is deleted

v1.18.x
barisusakli 11 years ago
parent 1eab829dec
commit fdf0076f37

@ -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);
}); });

Loading…
Cancel
Save