mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 15:49:55 +08:00
17 lines
382 B
Ruby
17 lines
382 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
|