re: #4807, fixed issue where an unban would still have the user listed in the temp ban sorted set

This commit is contained in:
Julian Lam
2016-07-05 11:11:22 -04:00
parent a2b0576b79
commit 37b1d1a050

View File

@@ -95,7 +95,7 @@ module.exports = function(User) {
User.setUserField(uid, 'banned', 0, next);
},
function (next) {
db.sortedSetRemove('users:banned', uid, next);
db.sortedSetsRemove(['users:banned', 'users:banned:expire'], uid, next);
},
function (next) {
plugins.fireHook('action:user.unbanned', {uid: uid});