mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-02-26 14:08:03 +00:00
13 lines
287 B
Ruby
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
|