mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
15 lines
265 B
Ruby
15 lines
265 B
Ruby
module Jobs
|
|
|
|
class FeatureTopicUsers < Jobs::Base
|
|
|
|
def execute(args)
|
|
topic = Topic.where(id: args[:topic_id]).first
|
|
raise Discourse::InvalidParameters.new(:topic_id) unless topic.present?
|
|
|
|
topic.feature_topic_users(args)
|
|
end
|
|
|
|
end
|
|
|
|
end
|