mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
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…
x
Reference in New Issue
Block a user