Skip to content

Commit

Permalink
Add missing parenthesis and ampersand (#257)
Browse files Browse the repository at this point in the history
* Add missing parenthesis and ampersand

* Update changelog

* Fix

* Fix

* Fix
  • Loading branch information
jumc authored Nov 17, 2023
1 parent db4fd95 commit 40c0a50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions dotnet/Services/ProductReviewService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public async Task<ReviewsResponseWrapper> 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
{
Expand All @@ -456,7 +456,7 @@ public async Task<ReviewsResponseWrapper> GetReviewsByProductId(string productId
}
if (!string.IsNullOrEmpty(locale))
{
localeQuery = $"_where={localeQuery}";
localeQuery = $"&_where={localeQuery}";
if(isLocaleWildcard)
{
localeQuery = $"&locale={locale}-*";
Expand Down

0 comments on commit 40c0a50

Please sign in to comment.