Skip to content

Commit

Permalink
Fix wrong variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
riking authored and SamSaffron committed Sep 30, 2014
1 parent 7604659 commit fa50723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/scheduled/leader_promotions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def execute(args)
demoted_user_ids = []
User.real.where(trust_level: TrustLevel[3], trust_level_locked: false).find_each do |u|
# 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)
demoted_user_ids << u.id
Expand Down

0 comments on commit fa50723

Please sign in to comment.