13 lines
287 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Jobs
class NotifyChats < ::Jobs::Base
2017-10-03 17:42:07 +08:00
sidekiq_options retry: false
2017-10-03 17:42:07 +08:00
def execute(args)
return if !SiteSetting.chat_integration_enabled?
::DiscourseChatIntegration::Manager.trigger_notifications(args[:post_id])
end
end
2017-08-01 20:53:39 +01:00
end