Chatwoot/app/jobs/hook_job.rb
Subin T P ed1c871633
Feature: Slack integration (#783)
- Integrations architecture
- Slack integration
2020-06-12 23:12:47 +05:30

11 lines
257 B
Ruby

class HookJob < ApplicationJob
queue_as :integrations
def perform(hook, message)
return unless hook.slack?
Integrations::Slack::OutgoingMessageBuilder.perform(hook, message)
rescue StandardError => e
Raven.capture_exception(e)
end
end