discourse/lib/jobs/feature_topic_users.rb

15 lines
265 B
Ruby
Raw Normal View History

2013-02-05 14:16:51 -05:00
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)
2013-02-05 14:16:51 -05:00
end
end
end