mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
removed updateUserCount
This commit is contained in:
@@ -79,6 +79,9 @@ module.exports = function(User) {
|
||||
'users:online'
|
||||
], uid, next);
|
||||
},
|
||||
function(next) {
|
||||
db.decrObjectField('global', 'userCount', next);
|
||||
},
|
||||
function(next) {
|
||||
var keys = [
|
||||
'uid:' + uid + ':notifications:read', 'uid:' + uid + ':notifications:unread',
|
||||
@@ -107,14 +110,7 @@ module.exports = function(User) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
async.parallel([
|
||||
function(next) {
|
||||
db.deleteAll(['followers:' + uid, 'following:' + uid, 'user:' + uid], next);
|
||||
},
|
||||
function(next) {
|
||||
User.updateUserCount(next);
|
||||
}
|
||||
], callback);
|
||||
db.deleteAll(['followers:' + uid, 'following:' + uid, 'user:' + uid], callback);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user