mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 13:19:19 +08:00
12 lines
285 B
Ruby
Vendored
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
|