diff --git a/CHANGELOG.md b/CHANGELOG.md index d4186e1..52a3689 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [Unreleased] + ### Changed - Using static language-country pairings derived from the locale and searching for `locale={locale}-*` only as fallback -## [Unreleased] - ## [3.14.2] - 2023-11-17 ## [3.14.1] - 2023-11-17 diff --git a/dotnet/Services/ProductReviewService.cs b/dotnet/Services/ProductReviewService.cs index 777b337..68f1872 100644 --- a/dotnet/Services/ProductReviewService.cs +++ b/dotnet/Services/ProductReviewService.cs @@ -442,7 +442,7 @@ public async Task GetReviewsByProductId(string productId } string productQuery = $" AND productId={productId}"; - wrapper = await this._productReviewRepository.GetProductReviewsMD($"_where={localeQuery}{ratingQuery}{productQuery}{searchQuery}{sort}", from.ToString(), to.ToString()); + wrapper = await this._productReviewRepository.GetProductReviewsMD($"_where=({localeQuery}){ratingQuery}{productQuery}{searchQuery}{sort}", from.ToString(), to.ToString()); } else { @@ -456,7 +456,7 @@ public async Task GetReviewsByProductId(string productId } if (!string.IsNullOrEmpty(locale)) { - localeQuery = $"_where={localeQuery}"; + localeQuery = $"&_where={localeQuery}"; if(isLocaleWildcard) { localeQuery = $"&locale={locale}-*";