use sidekiq

This commit is contained in:
Pete Matsyburka committed 2024-06-24 21:10:58 +03:00
1 parent 9539c476c0
commit 3034c00bb3
41 files changed
+332 -132

No files matched your search

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