mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-24 13:49:54 -04:00
don't bother iterating over disabled badges
This commit is contained in:
parent
bfa4e6b69c
commit
8b0ffd9a88
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue