mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
refactor start form
This commit is contained in:
1 parent
807463c465
commit
0480572ef5
14 files changed
+296
-175
No files matched your search
@@ -53,13 +53,7 @@ class StartFormEmail2faSendController < ApplicationController
|
||||
|
||||
return false if email.blank?
|
||||
|
||||
Submitter
|
||||
.where(submission: template.submissions.non_expired.active)
|
||||
.where(uuid: template.submitters.pluck('uuid'))
|
||||
.where(declined_at: nil)
|
||||
.where(external_id: nil)
|
||||
.where(completed_at: nil)
|
||||
.exists?(email:)
|
||||
Submitters::StartForm.build_submitters_scope(template, exclude_completed: true).exists?(email:)
|
||||
end
|
||||
|
||||
def submitter_params
|
||||
|
||||
Reference in new issue
Block a user