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