mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 08:43:45 +08:00
12 lines
175 B
Ruby
12 lines
175 B
Ruby
module Jobs
|
|
|
|
class ClosePoll < Jobs::Base
|
|
|
|
def execute(args)
|
|
DiscoursePoll::Poll.toggle_status(args[:post_id], args[:poll_name], "closed", -1)
|
|
end
|
|
|
|
end
|
|
|
|
end
|