fix: issue with slack job (#7179)

This commit is contained in:
Tejaswini Chile
2023-05-24 20:22:34 +05:30
committed by GitHub
parent bfaca851f1
commit 8e79cf72e1
4 changed files with 14 additions and 15 deletions

View File

@@ -21,12 +21,9 @@ class HookJob < ApplicationJob
message = event_data[:message]
if message.attachments.blank?
::SendOnSlackJob.perform_later(message: message,
hook: hook)
::SendOnSlackJob.perform_later(message, hook)
else
::SendOnSlackJob.set(wait: 2.seconds).perform_later(
message: message, hook: hook
)
::SendOnSlackJob.set(wait: 2.seconds).perform_later(message, hook)
end
end