fix(search): preload before updating search terms because we access all champs
This commit is contained in:
parent
4408824882
commit
797bd6b94b
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,8 @@ module DossierSearchableConcern
|
|||
kredis_flag :debounce_update_search_terms_flag
|
||||
|
||||
def update_search_terms
|
||||
DossierPreloader.load_one(self)
|
||||
|
||||
search_terms = [
|
||||
user&.email,
|
||||
*champs_public.flat_map(&:search_terms),
|
||||
|
|
Loading…
Reference in a new issue