Check both site and global setting for s3 enabled value.
This commit is contained in:
parent
c6409fd2cc
commit
9c78c18256
|
@ -5,7 +5,7 @@ module Jobs
|
|||
class UpdateS3Inventory < Jobs::Base
|
||||
|
||||
def execute(args)
|
||||
return unless SiteSetting.enable_s3_inventory? && SiteSetting.enable_s3_uploads?
|
||||
return unless SiteSetting.enable_s3_inventory? && SiteSetting.Upload.enable_s3_uploads
|
||||
|
||||
[:upload, :optimized].each do |type|
|
||||
s3_inventory = S3Inventory.new(Discourse.store.s3_helper, type)
|
||||
|
|
Loading…
Reference in New Issue