mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
add submission created webhook event
This commit is contained in:
1 parent
b4b17d847e
commit
f0d5fc4e2d
7 files changed
+121
-55
No files matched your search
@@ -33,7 +33,11 @@ class StartFormController < ApplicationController
|
||||
|
||||
assign_submission_attributes(@submitter, @template) if @submitter.new_record?
|
||||
|
||||
is_new_record = @submitter.new_record?
|
||||
|
||||
if @submitter.save
|
||||
SendSubmissionCreatedWebhookRequestJob.perform_later(@submitter.submission) if is_new_record
|
||||
|
||||
redirect_to submit_form_path(@submitter.slug)
|
||||
else
|
||||
render :show
|
||||
|
||||
Reference in new issue
Block a user