0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/plugins/discourse-chat-integration/app/jobs/regular/notify_chats.rb
Jarek Radosz e372355fd0
DEV: Clean up scope resolution operators in plugins (#34979)
Co-authored-by: Loïc Guitaut <loic@discourse.org>
2025-09-30 14:36:34 +02:00

12 lines
285 B
Ruby
Vendored

# 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