This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/jobs/regular/update_topic_upload_security.rb
2023-01-09 14:14:59 +00:00

17 lines
401 B
Ruby

# frozen_string_literal: true
module Jobs
class UpdateTopicUploadSecurity < ::Jobs::Base
def execute(args)
topic = Topic.find_by(id: args[:topic_id])
if topic.blank?
Rails.logger.info(
"Could not find topic #{args[:topic_id]} for topic upload security updater.",
)
return
end
TopicUploadSecurityManager.new(topic).run
end
end
end