mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 11:32:24 -05:00
14 lines
265 B
Ruby
14 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
|