mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
make shared templates searchable
This commit is contained in:
1 parent
ee4acd5a82
commit
2020f6c136
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -50,7 +50,8 @@ module Submissions
|
||||
arel,
|
||||
Submission.where(
|
||||
template_id: SearchEntry.where(record_type: 'Template')
|
||||
.where(account_id: current_user.account_id)
|
||||
.where(account_id: [current_user.account_id,
|
||||
current_user.account.linked_account_account&.account_id].compact)
|
||||
.where(*SearchEntries.build_tsquery(keyword))
|
||||
.select(:record_id)
|
||||
).select(:id).arel
|
||||
|
||||
+2
-1
@@ -56,7 +56,8 @@ module Templates
|
||||
|
||||
templates.where(
|
||||
id: SearchEntry.where(record_type: 'Template')
|
||||
.where(account_id: current_user.account_id)
|
||||
.where(account_id: [current_user.account_id,
|
||||
current_user.account.linked_account_account&.account_id].compact)
|
||||
.where(*SearchEntries.build_tsquery(keyword))
|
||||
.select(:record_id)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user