discourse-chat-integration/app/jobs/regular/notify_chats.rb

13 lines
287 B
Ruby

# frozen_string_literal: true
module Jobs
class NotifyChats < ::Jobs::Base
sidekiq_options retry: false
def execute(args)
return if !SiteSetting.chat_integration_enabled?
::DiscourseChatIntegration::Manager.trigger_notifications(args[:post_id])
end
end
end