chore: Add delay for slack job when message has attachments (#7107)
This commit is contained in:
8
app/jobs/send_on_slack_job.rb
Normal file
8
app/jobs/send_on_slack_job.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class SendOnSlackJob < ApplicationJob
|
||||
queue_as :medium
|
||||
pattr_initialize [:message!, :hook!]
|
||||
|
||||
def perform
|
||||
Integrations::Slack::SendOnSlackService.new(message: message, hook: hook).perform
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user