mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
optimize query
This commit is contained in:
1 parent
5413fbc248
commit
b8d00870b4
2 files changed
+2
-4
No files matched your search
@@ -65,6 +65,7 @@ module Submitters
|
||||
submissions = submissions.where(source:) if source
|
||||
|
||||
Submitter
|
||||
.where(template_id: template.id)
|
||||
.where(submission: submissions)
|
||||
.order(id: :desc)
|
||||
.where(declined_at: nil)
|
||||
|
||||
Reference in new issue
Block a user