fix(search): increase debounce delay because of too frequent brouillon updates

This commit is contained in:
Colin Darie 2024-05-27 09:56:43 +02:00
parent eaf9773e9e
commit 3617368a35
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -6,7 +6,7 @@ module DossierSearchableConcern
included do
after_commit :index_search_terms_later, if: -> { previously_new_record? || user_previously_changed? || mandataire_first_name_previously_changed? || mandataire_last_name_previously_changed? }
SEARCH_TERMS_DEBOUNCE = 30.seconds
SEARCH_TERMS_DEBOUNCE = 5.minutes
kredis_flag :debounce_index_search_terms_flag