clean unused includes

This commit is contained in:
simon lehericey 2024-12-03 15:33:11 +01:00
parent 06a71cdf85
commit 11402c6ee2
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -40,7 +40,7 @@ class DossierSearchService
def self.dossier_by_full_text_for_user(search_terms, dossiers) def self.dossier_by_full_text_for_user(search_terms, dossiers)
ts_vector = "to_tsvector('french', search_terms)" ts_vector = "to_tsvector('french', search_terms)"
ts_query = "to_tsquery('french', #{Dossier.includes(:procedure).connection.quote(to_tsquery(search_terms))})" ts_query = "to_tsquery('french', #{Dossier.connection.quote(to_tsquery(search_terms))})"
dossiers dossiers
.visible_by_user .visible_by_user