Chatwoot/app/jobs/hook_job.rb
Sojan Jose 4f83d5451e
Chore: Routine Bugfixes and enhancements (#979)
- Fix slack scopes
- Docs for authentication
Fixes: #704 , #973
2020-06-25 23:35:16 +05:30

11 lines
272 B
Ruby

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