add started and viewed webhook events

This commit is contained in:
Alex Turchyn committed 2023-09-15 00:47:25 +03:00
1 parent 9d9e134bb4
commit 3faec9d174
9 files changed
+57 -8

No files matched your search

@@ -18,7 +18,7 @@ class WebhookSettingsController < ApplicationController
def update
submitter = current_account.submitters.where.not(completed_at: nil).order(:id).last
SendWebhookRequestJob.perform_later(submitter)
SendFormCompletedWebhookRequestJob.perform_later(submitter)
redirect_back(fallback_location: settings_webhooks_path, notice: 'Webhook request has been sent.')
end