one-off submission

This commit is contained in:
Pete Matsyburka authored and Pete Matsyburka committed 2025-06-06 08:47:56 +03:00
1 parent c59d948d41
commit f03166b4ea
47 files changed
+218 -145

No files matched your search

@@ -21,12 +21,13 @@ module Api
)
cloned_template.source = :api
cloned_template.save!
schema_documents = Templates::CloneAttachments.call(template: cloned_template,
original_template: @template,
documents: params[:documents])
cloned_template.save!
WebhookUrls.for_account_id(cloned_template.account_id, 'template.created').each do |webhook_url|
SendTemplateCreatedWebhookRequestJob.perform_async('template_id' => cloned_template.id,
'webhook_url_id' => webhook_url.id)