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)
|
||||
return unless SiteSetting.enable_badges
|
||||
|
||||
Badge.all.each do |b|
|
||||
Badge.enabled.find_each do |b|
|
||||
begin
|
||||
BadgeGranter.backfill(b)
|
||||
rescue => ex
|
||||
|
|
Loading…
Reference in New Issue