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

+1 -4
View File
@@ -67,10 +67,7 @@ module Api
SearchEntries.enqueue_reindex(@template)
WebhookUrls.for_account_id(@template.account_id, 'template.updated').each do |webhook_url|
SendTemplateUpdatedWebhookRequestJob.perform_async('template_id' => @template.id,
'webhook_url_id' => webhook_url.id)
end
WebhookUrls.enqueue_events(@template, 'template.updated')
render json: @template.as_json(only: %i[id updated_at])
end