You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/app/jobs/send_template_archived_webh...

13 lines
368 B

# frozen_string_literal: true
class SendTemplateArchivedWebhookRequestJob
include WebhookRequestJob
def perform(params = {})
perform_webhook_request(params, record_key: 'template_id', record_class: Template,
event_type: 'template.archived') do |template|
template.as_json(only: %i[id archived_at])
end
end
end