refactor start form

This commit is contained in:
Pete Matsyburka committed 2026-08-23 15:45:43 +03:00
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