From 6ae69e29471f1f3725a62f6fde5602c3346e136e Mon Sep 17 00:00:00 2001 From: MarcEricMartel <74071476+MarcEricMartel@users.noreply.github.com> Date: Tue, 25 Oct 2022 10:19:30 -0700 Subject: [PATCH] Update SearchController.cs --- .../GrossesMitainesAPI/Controllers/SearchController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GrossesMitaines/GrossesMitainesAPI/Controllers/SearchController.cs b/GrossesMitaines/GrossesMitainesAPI/Controllers/SearchController.cs index 9d60e2f..bf9b019 100644 --- a/GrossesMitaines/GrossesMitainesAPI/Controllers/SearchController.cs +++ b/GrossesMitaines/GrossesMitainesAPI/Controllers/SearchController.cs @@ -80,7 +80,7 @@ public class SearchController : Controller { query = query.Trim(); if (_searchCache is null) { _logger.LogError(8, "Erreur de cache."); - return Search(query, preview, deep); + return Search(query, preview, deep); // Fallback vers version non-cached. } try { // Pour faire une liste priorisée. if (preview.HasValue && preview == true) @@ -117,7 +117,7 @@ public class SearchController : Controller { } } catch (Exception e) { _logger.LogError(8, e.Message); - return Search(query, preview, deep); + return Search(query, preview, deep); // Fallback vers version non-cached. } return products; }