react-version #1

Merged
memartel_loc merged 290 commits from react-version into main 2023-11-04 09:48:15 -04:00
Showing only changes of commit d63cb15df1 - Show all commits

View File

@ -34,8 +34,8 @@ public class SearchController : Controller {
if (_searchCache is not null)
return SearchCached(query, preview, deep);
else return Search(query, preview, deep);
}
private List<Product> Search(string query, bool? preview, bool? deep) {
List<Product> products = new();
@ -86,8 +86,10 @@ public class SearchController : Controller {
query = query.Trim();
if (_searchCache is null)
if (_searchCache is null) {
_logger.LogError(8, "Erreur de cache.");
return products;
}
try { // Pour faire une liste priorisée.
if (preview.HasValue && preview == true)