mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 22:54:39 +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
|