don't bother iterating over disabled badges
This commit is contained in:
parent
bfa4e6b69c
commit
8b0ffd9a88
|
@ -10,7 +10,7 @@ module Jobs
|
||||||
def execute(args)
|
def execute(args)
|
||||||
return unless SiteSetting.enable_badges
|
return unless SiteSetting.enable_badges
|
||||||
|
|
||||||
Badge.all.each do |b|
|
Badge.enabled.find_each do |b|
|
||||||
begin
|
begin
|
||||||
BadgeGranter.backfill(b)
|
BadgeGranter.backfill(b)
|
||||||
rescue => ex
|
rescue => ex
|
||||||
|
|
Loading…
Reference in New Issue