adjust webhooks

This commit is contained in:
Pete Matsyburka committed 2024-11-03 09:49:30 +02:00
1 parent 84edb6dbda
commit 2542f26d96
40 files changed
+156 -235

No files matched your search

@@ -13,9 +13,9 @@ module Api
SubmissionEvents.create_with_tracking_data(submitter, 'view_form', request)
submitter.account.webhook_urls.with_event('form.viewed').each do |webhook_url|
SendFormViewedWebhookRequestJob.perform_async({ 'submitter_id' => submitter.id,
'webhook_url_id' => webhook_url.id })
WebhookUrls.for_account_id(submitter.account_id, 'form.viewed').each do |webhook_url|
SendFormViewedWebhookRequestJob.perform_async('submitter_id' => submitter.id,
'webhook_url_id' => webhook_url.id)
end
render json: {}