mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 07:22:32 -05:00
add webhook events
This commit is contained in:
1 parent
1b60b42428
commit
988a5361a6
54 files changed
+825
-160
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user