Fix wrong variable name

This commit is contained in:
riking 2014-09-13 18:15:22 -07:00 committed by Sam
parent 760465959f
commit fa50723807
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ module Jobs
demoted_user_ids = [] demoted_user_ids = []
User.real.where(trust_level: TrustLevel[3], trust_level_locked: false).find_each do |u| User.real.where(trust_level: TrustLevel[3], trust_level_locked: false).find_each do |u|
# Don't demote too soon after being promoted # Don't demote too soon after being promoted
next if user.on_leader_grace_period? next if u.on_leader_grace_period?
if Promotion.tl3_lost?(u) if Promotion.tl3_lost?(u)
demoted_user_ids << u.id demoted_user_ids << u.id