mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -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
|