add webhook events

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2025-07-04 22:28:01 +03:00
1 parent 1b60b42428
commit 988a5361a6
54 files changed
+825 -160

No files matched your search

@@ -28,10 +28,7 @@ module Api
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)
end
WebhookUrls.enqueue_events(cloned_template, 'template.created')
SearchEntries.enqueue_reindex(cloned_template)