From 4084f814b3f9c7665841fdad071b19ac16854ec5 Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Tue, 11 Jul 2023 11:23:27 +0200 Subject: [PATCH] fix specs --- app/services/dossier_search_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/dossier_search_service.rb b/app/services/dossier_search_service.rb index b949e184b..6a6ffd504 100644 --- a/app/services/dossier_search_service.rb +++ b/app/services/dossier_search_service.rb @@ -10,7 +10,7 @@ class DossierSearchService def self.matching_dossiers_for_user(search_terms, user) dossier_by_exact_id_for_user(search_terms, user) - .presence || dossier_by_full_text_for_user(search_terms, user.dossiers).presence || dossier_by_full_text_for_user(search_terms, user.dossiers_invites).presence + .presence || dossier_by_full_text_for_user(search_terms, user.dossiers).presence || dossier_by_full_text_for_user(search_terms, user.dossiers_invites) end private