mirror of
https://github.com/docusealco/docuseal.git
synced 2026-08-07 07:14:43 +00:00
fix autocomplete index use
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ module Submitters
|
||||
submitter_ids = SearchEntry.where(record_type: 'Submitter')
|
||||
.where(account_id: current_user.account_id)
|
||||
.where(*query)
|
||||
.limit(keyword.length > 2 ? 500 : 5000)
|
||||
.limit(keyword.strip.length > 2 ? 500 : 5000)
|
||||
.pluck(:record_id)
|
||||
|
||||
submitters.where(id: submitter_ids.first(100))
|
||||
|
||||
Reference in New Issue
Block a user