mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
optimize query
This commit is contained in:
1 parent
236b882558
commit
7a75a6c887
2 files changed
+2
-2
No files matched your search
@@ -80,7 +80,7 @@ class StartFormController < ApplicationController
|
||||
raise ActionController::RoutingError, I18n.t('not_found') if required_params.any? { |_, v| v.blank? } ||
|
||||
required_params.except('name').compact_blank.blank?
|
||||
|
||||
@submitter = Submitter.where(submission: @template.submissions)
|
||||
@submitter = Submitter.where(template_id: @template.id)
|
||||
.where.not(completed_at: nil)
|
||||
.find_by!(required_params.except('name'))
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user