add started and viewed webhook events

This commit is contained in:
Alex Turchyn
2023-09-14 20:31:07 +03:00
parent 9d9e134bb4
commit 3faec9d174
9 changed files with 57 additions and 8 deletions
@@ -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