scinote-web/app/jobs/activities/send_webhook_job.rb

12 lines
248 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Activities
class SendWebhookJob < ApplicationJob
queue_as :high_priority
def perform(webhook, activity)
2021-06-17 20:54:30 +08:00
Activities::ActivityWebhookService.new(webhook, activity).send_webhook
end
end
end