mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
11 lines
248 B
Ruby
11 lines
248 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Activities
|
|
class SendWebhookJob < ApplicationJob
|
|
queue_as :high_priority
|
|
|
|
def perform(webhook, activity)
|
|
Activities::ActivityWebhookService.new(webhook, activity).send_webhook
|
|
end
|
|
end
|
|
end
|