mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
simplify job params
This commit is contained in:
1 parent
61da477733
commit
acf06084bf
19 files changed
+78
-53
No files matched your search
@@ -36,7 +36,9 @@ class StartFormController < ApplicationController
|
||||
is_new_record = @submitter.new_record?
|
||||
|
||||
if @submitter.save
|
||||
SendSubmissionCreatedWebhookRequestJob.perform_later(@submitter.submission) if is_new_record
|
||||
if is_new_record
|
||||
SendSubmissionCreatedWebhookRequestJob.perform_later({ 'submission_id' => @submitter.submission.id })
|
||||
end
|
||||
|
||||
redirect_to submit_form_path(@submitter.slug)
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user