From fa50723807431d39b1ba38686185bd35fb65c223 Mon Sep 17 00:00:00 2001 From: riking Date: Sat, 13 Sep 2014 18:15:22 -0700 Subject: [PATCH] Fix wrong variable name --- app/jobs/scheduled/leader_promotions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/scheduled/leader_promotions.rb b/app/jobs/scheduled/leader_promotions.rb index 52966056111..3f0c1d016d3 100644 --- a/app/jobs/scheduled/leader_promotions.rb +++ b/app/jobs/scheduled/leader_promotions.rb @@ -8,7 +8,7 @@ module Jobs 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