fix autocomplete index use

This commit is contained in:
Pete Matsyburka committed 2026-07-01 13:06:00 +03:00
1 parent 2085227cd9
commit bbf8bb2a94
1 file changed
+1 -1
+1 -1
View File
@@ -84,7 +84,7 @@ module Submitters
submitter_ids = SearchEntry.where(record_type: 'Submitter')
.where(account_id: current_user.account_id)
.where(*query)
.limit(500)
.limit(keyword.length > 2 ? 500 : 5000)
.pluck(:record_id)
submitters.where(id: submitter_ids.first(100))